Search

arrow-core-data / arrow.core / Function0

Function0

@higherkind data class Function0<out A>

Constructors

<init> Function0(f: () -> A)

Functions

ap fun <B> ap(ff: <ERROR CLASS><(A) -> B>): () -> B
coflatMap fun <B> coflatMap(f: (<ERROR CLASS><A>) -> B): () -> B
extract fun extract(): A
flatMap fun <B> flatMap(ff: (A) -> <ERROR CLASS><B>): () -> B
map fun <B> map(f: (A) -> B): () -> B

Companion Object Functions

just fun <A> just(a: A): () -> A
loop tailrec fun <A, B> loop(a: A, f: (A) -> Kind<<ERROR CLASS>, Either<A, B>>): B
tailRecM fun <A, B> tailRecM(a: A, f: (A) -> Kind<<ERROR CLASS>, Either<A, B>>): () -> B

Extension Functions

select fun <A, B> (() -> Either<A, B>).select(f: <ERROR CLASS><(A) -> B>): () -> B