arrow-core-data / arrow.core / Function1

Function1

@higherkind class Function1<I, out O> : Function1Of<I, O>

Constructors

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

Properties

f val f: (I) -> O

Functions

ap fun <B> ap(ff: Function1Of<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) -> Function1Of<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) -> Function1Of<I, Either<A, B>>): (I) -> B

Extension Functions

altFold fun <T, F, A> Kind<T, A>.altFold(AF: Alternative<F>, FT: Foldable<T>): Kind<F, A>
altSum fun <T, F, A> Kind<T, Kind<F, A>>.altSum(AF: Alternative<F>, FT: Foldable<T>): Kind<F, A>
conest fun <F, A, B> CounnestedType<F, A, B>.conest(): ConestedType<F, A, B>
invoke operator fun <I, O> Function1Of<I, O>.invoke(i: I): O

Do you like Arrow?

Arrow Org
<