EmptyValue

object EmptyValue

This is a work-around for having nested nulls in generic code. This allows for writing faster generic code instead of using Option. This is only used as an optimisation technique in low-level code, always prefer to use Option in actual business code when needed in generic code.

Functions

Link copied to clipboard
inline fun <T> combine(first: Any?, second: T, combine: (T, T) -> T): T
Link copied to clipboard
inline fun <T, R> fold(value: Any?, ifEmpty: () -> R, ifNotEmpty: (T) -> R): R
Link copied to clipboard
inline fun <A> unbox(value: Any?): A