Package-level declarations

Functions

Link copied to clipboard
fun <I1, I2, O> (I1, I2) -> O.curry(): (I1) -> (I2) -> O

Curry a two-argument function.

fun <I1, I2, I3, O> (I1, I2, I3) -> O.curry(): (I1) -> (I2) -> (I3) -> O

Curry a three-argument function.

fun <I1, I2, I3, I4, O> (I1, I2, I3, I4) -> O.curry(): (I1) -> (I2) -> (I3) -> (I4) -> O

Curry a four-argument function.

fun <I1, I2, I3, I4, I5, O> (I1, I2, I3, I4, I5) -> O.curry(): (I1) -> (I2) -> (I3) -> (I4) -> (I5) -> O

Curry a five-argument function.

fun <I1, I2, I3, I4, I5, I6, O> (I1, I2, I3, I4, I5, I6) -> O.curry(): (I1) -> (I2) -> (I3) -> (I4) -> (I5) -> (I6) -> O

Curry a six-argument function.

Link copied to clipboard
fun <I1, I2, I3, O> (I1, I2, I3) -> O.curryFirst(): (I1) -> (I2, I3) -> O

Curry the first argument of a three-argument function.

fun <I1, I2, I3, I4, O> (I1, I2, I3, I4) -> O.curryFirst(): (I1) -> (I2, I3, I4) -> O

Curry the first argument of a four-argument function.

fun <I1, I2, I3, I4, I5, O> (I1, I2, I3, I4, I5) -> O.curryFirst(): (I1) -> (I2, I3, I4, I5) -> O

Curry the first argument of a five-argument function.

fun <I1, I2, I3, I4, I5, I6, O> (I1, I2, I3, I4, I5, I6) -> O.curryFirst(): (I1) -> (I2, I3, I4, I5, I6) -> O

Curry the first argument of a six-argument function.

Link copied to clipboard
fun <O> () -> O.memoize(): () -> O
fun <I1, O> (I1) -> O.memoize(): (I1) -> O
fun <I1, I2, O> (I1, I2) -> O.memoize(): (I1, I2) -> O
fun <I1, I2, I3, O> (I1, I2, I3) -> O.memoize(): (I1, I2, I3) -> O
fun <I1, I2, I3, I4, O> (I1, I2, I3, I4) -> O.memoize(): (I1, I2, I3, I4) -> O
fun <I1, I2, I3, I4, I5, O> (I1, I2, I3, I4, I5) -> O.memoize(): (I1, I2, I3, I4, I5) -> O
fun <I1, I2, I3, I4, I5, I6, O> (I1, I2, I3, I4, I5, I6) -> O.memoize(): (I1, I2, I3, I4, I5, I6) -> O

Returns a locally-memoized version of this function. Two separate invocations of memoize will have two separate caches.

Link copied to clipboard
fun <I1, I2, O> (I2) -> O.of(first: (I1) -> I2): (I1) -> O

Compose two functions. first is called first, and then this is called with the result.

Link copied to clipboard
fun <I1, O> (I1) -> O.partialApply(value: I1): () -> O

Binds the argument of this function with a constant value.

fun <I1, I2, O> (I1, I2) -> O.partialApply(value: I1): (I2) -> O
fun <I1, I2, I3, O> (I1, I2, I3) -> O.partialApply(value: I1): (I2, I3) -> O
fun <I1, I2, I3, I4, O> (I1, I2, I3, I4) -> O.partialApply(value: I1): (I2, I3, I4) -> O
fun <I1, I2, I3, I4, I5, O> (I1, I2, I3, I4, I5) -> O.partialApply(value: I1): (I2, I3, I4, I5) -> O
fun <I1, I2, I3, I4, I5, I6, O> (I1, I2, I3, I4, I5, I6) -> O.partialApply(value: I1): (I2, I3, I4, I5, I6) -> O

Binds the first argument of this function with a constant value.

Link copied to clipboard
fun <T> (T) -> T.repeat(count: Int): (T) -> T

Returns a function that repeats the application of this times.

Link copied to clipboard
fun <I1, I2, O> (I1, I2) -> O.reverse(): (I2, I1) -> O
fun <I1, I2, I3, O> (I1, I2, I3) -> O.reverse(): (I3, I2, I1) -> O
fun <I1, I2, I3, I4, O> (I1, I2, I3, I4) -> O.reverse(): (I4, I3, I2, I1) -> O
fun <I1, I2, I3, I4, I5, O> (I1, I2, I3, I4, I5) -> O.reverse(): (I5, I4, I3, I2, I1) -> O
fun <I1, I2, I3, I4, I5, I6, O> (I1, I2, I3, I4, I5, I6) -> O.reverse(): (I6, I5, I4, I3, I2, I1) -> O

Returns a function where the argument order has been reversed.

Link copied to clipboard
fun <I1, I2, I3, O> (I1, I2, I3) -> O.rotate(): (I3, I1, I2) -> O
fun <I1, I2, I3, I4, O> (I1, I2, I3, I4) -> O.rotate(): (I4, I1, I2, I3) -> O
fun <I1, I2, I3, I4, I5, O> (I1, I2, I3, I4, I5) -> O.rotate(): (I5, I1, I2, I3, I4) -> O
fun <I1, I2, I3, I4, I5, I6, O> (I1, I2, I3, I4, I5, I6) -> O.rotate(): (I6, I1, I2, I3, I4, I5) -> O

Returns a function where the last argument has been moved to before the first argument.

Link copied to clipboard
fun <I1, I2, I3, O> (I1, I2, I3) -> O.rotateBack(): (I2, I3, I1) -> O
fun <I1, I2, I3, I4, O> (I1, I2, I3, I4) -> O.rotateBack(): (I2, I3, I4, I1) -> O
fun <I1, I2, I3, I4, I5, O> (I1, I2, I3, I4, I5) -> O.rotateBack(): (I2, I3, I4, I5, I1) -> O
fun <I1, I2, I3, I4, I5, I6, O> (I1, I2, I3, I4, I5, I6) -> O.rotateBack(): (I2, I3, I4, I5, I6, I1) -> O

Returns a function where the first argument has been moved to after the last argument.

Link copied to clipboard
fun <I1, I2, O> (I1) -> I2.then(second: (I2) -> O): (I1) -> O

Compose two functions. this is called first, and then second is called with the result.