| Modifier and Type | Field and Description |
|---|---|
Supplier<Trampoline.Continuation<V>> |
Trampoline.Continuation.fun |
| Modifier and Type | Method and Description |
|---|---|
static <V> Trampoline.Continuation<V> |
Trampoline.done(V v)
return done to when last value is found
|
static <V> Trampoline.Continuation<V> |
Trampoline.recur(Supplier<Trampoline.Continuation<V>> f)
return recur to recur withLast f and a
|
static <V> Trampoline.Continuation<V> |
Trampoline.seq(Supplier<Trampoline.Continuation<V>> f,
V v)
return seq to yield lazy value v, and continue withLast f a
f as null is same as done or stop, depending on v
Will behave like recur on a trampoline
|
static <V> Trampoline.Continuation<V> |
Trampoline.stop()
Return stop when done without a value.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,V> Iterable<V> |
Trampoline.lazy(Supplier<Trampoline.Continuation<V>> fun)
Emits a lazy Iterable recuring until stop, done, null or lack of f
|
static <V> Trampoline.Continuation<V> |
Trampoline.recur(Supplier<Trampoline.Continuation<V>> f)
return recur to recur withLast f and a
|
static <V> Trampoline.Continuation<V> |
Trampoline.seq(Supplier<Trampoline.Continuation<V>> f,
V v)
return seq to yield lazy value v, and continue withLast f a
f as null is same as done or stop, depending on v
Will behave like recur on a trampoline
|
static <V> V |
Trampoline.trampoline(Supplier<Trampoline.Continuation<V>> fun)
Will recur on fun until done(value)
|
Copyright © 2017. All rights reserved.