Combinator

object Combinator

Utilities for applying functions recursively and enabling function self-reference.

Functions

Link copied to clipboard
fun recurse(body: (() -> Unit) -> Unit)

Invoke the given function with another function which will, when evaluated, do this again.

fun <A> recurse(argument: A, body: (A, (A) -> Unit) -> Unit)

Invoke the given function with a supplied argument and another function which, when invoked, will once again invoke the original function with the new argument, etc.