Package-level declarations

Functions

Link copied to clipboard
inline fun <T> T.closeFinally(cause: Throwable?, close: T.() -> Unit)

Copied and adapted from kotlin.closeFinally.

Link copied to clipboard
inline operator fun <E : Enum<E>> E.dec(): E
Link copied to clipboard
fun <E : Enum<E>> enumPlus(values: Array<E>, first: E, second: Int): E
Link copied to clipboard
inline operator fun <E : Enum<E>> E.inc(): E
Link copied to clipboard
inline operator fun <E : Enum<E>> E.minus(other: Int): E
Link copied to clipboard
inline operator fun <E : Enum<E>> E.plus(other: Int): E
Link copied to clipboard
inline fun <T : Any> produceInCallback(block: (setValue: (T) -> Unit) -> Unit): T
Link copied to clipboard
inline fun <T, R> T.use(block: (T) -> R, close: T.() -> Unit): R

Copied and adapted from kotlin.use.