Package-level declarations

Functions

Link copied to clipboard
infix fun <T, R, V> (T) -> R.andThen(other: (R) -> V): (T) -> V

Composes two functions, applying the receiver function first and then the other function.

Link copied to clipboard
infix fun <T, R, V> (R) -> V.compose(other: (T) -> R): (T) -> V

Composes two functions, applying the other function first and then the receiver function.

Link copied to clipboard
fun <T, R> (T) -> R.concurrentMemoize(): (T) -> R

Creates a thread-safe memoized version of the receiver function.

Link copied to clipboard
fun <T, R> (T) -> R.memoize(): (T) -> R

Creates a memoized version of the receiver function.

Link copied to clipboard
fun <T, R> (T) -> R.memoizeWithExpiration(expirationTimeMs: Long): (T) -> R

Creates a time-based expiration memoized version of the receiver function.

Link copied to clipboard
fun <T, R> (T) -> R.memoizeWithLimit(maxSize: Int): (T) -> R

Creates a size-limited memoized version of the receiver function.

Link copied to clipboard
operator fun () -> Unit.plus(other: () -> Unit): () -> <Error class: unknown class>

Combines two functions into one that executes both in sequence.

Link copied to clipboard
infix fun Int.repeat(block: () -> Unit): <Error class: unknown class>

Repeats the execution of a function a specified number of times.

Link copied to clipboard
fun <T, R> (T) -> R.safely(input: T): R?

Executes the receiver function safely, returning null if an exception occurs.

Link copied to clipboard
fun <T, R> (T) -> R.safelyOr(input: T, default: R): R

Executes the receiver function safely, returning a default value if an exception occurs.

Link copied to clipboard
operator fun Int.times(block: () -> Unit): <Error class: unknown class>

Repeats the execution of a function a specified number of times.

Link copied to clipboard
operator fun () -> Unit.unaryPlus()

Executes the function.