Package-level declarations

Types

Link copied to clipboard
object Combinator

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

Link copied to clipboard
typealias Describer = ((String) -> Unit) -> Unit

A Describer produces a message and forwards it to a supplied continuation. It is used by the AvailCompiler to support lazy stringification in a continuation-passing style.

Link copied to clipboard
class FormattingDescriber(patternString: String, arguments: Any) : Function1<(String) -> Unit, Unit>

A FormattingDescriber is a Describer that is given a String to act as a Formatter pattern, and an array of arbitrary values to supply to it.

Link copied to clipboard
class OnceSupplier<T : Any>(innerSupplier: () -> T) : Function0<T>

Converts any supplier into one that caches its value upon first evaluation, returning the same value thereafter. The supplier must not produce null.

Link copied to clipboard
class SimpleDescriber(string: String) : Function1<(String) -> Unit, Unit>

A SimpleDescriber is a Describer that is given an already-constructed String at construction time.