arrow-core-data / arrow.core / Eval / FlatMap
abstract class FlatMap<out A> : Eval<A>
FlatMap is a type of Eval that is used to chain computations involving .map and .flatMap. Along with Eval#flatMap. It implements the trampoline that guarantees stack-safety.
Users should not instantiate FlatMap instances themselves. Instead, they will be automatically created when needed.
Unlike a traditional trampoline, the internal workings of the trampoline are not exposed. This allows a slightly more efficient implementation of the .value method.
| <init> | FlatMap is a type of Eval that is used to chain computations involving .map and .flatMap. Along with Eval#flatMap. It implements the trampoline that guarantees stack-safety.FlatMap() |
| memoize | open fun memoize(): Eval<A> |
| run | abstract fun <S> run(s: S): Eval<A> |
| start | abstract fun <S> start(): Eval<S> |
| toString | open fun toString(): String |
| value | open fun value(): A |
Do you like Arrow?
✖