Search

arrow-core-data / arrow.core / Function1

Function1

@higherkind class Function1<I, out O>

Constructors

<init> Function1(f: (I) -> O)

Properties

f val f: (I) -> O

Functions

ap fun <B> ap(ff: <ERROR CLASS><I, (O) -> B>): (I) -> B
compose fun <B> compose(g: (B) -> I): (B) -> O
contramap fun <B> contramap(f: (B) -> I): (B) -> O
flatMap fun <B> flatMap(f: (O) -> <ERROR CLASS><I, B>): (I) -> B
local fun local(f: (I) -> I): (I) -> O
map fun <B> map(f: (O) -> B): (I) -> B

Companion Object Functions

ask fun <I> ask(): (I) -> I
id fun <I> id(): (I) -> I
just fun <I, A> just(a: A): (I) -> A
tailRecM fun <I, A, B> tailRecM(a: A, f: (A) -> <ERROR CLASS><I, Either<A, B>>): (I) -> B