Package-level declarations

Functions

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

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

Link copied to clipboard
@Composable
infix fun <T, R, V> @Composable (R) -> V.compose(other: @Composable (T) -> R): @Composable (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
@Composable
operator fun @Composable () -> Unit.plus(other: @Composable () -> Unit): () -> Unit

Combines two functions into one that executes both in sequence.

Link copied to clipboard
@Composable
infix fun Int.repeat(block: @Composable () -> Unit)

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
@Composable
operator fun Int.times(block: @Composable () -> Unit)

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

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

Executes the function.