Option

sealed class Option<out T>

Inheritors

Types

Link copied to clipboard
@Serializable
data object None : Option<Nothing>
Link copied to clipboard
@Serializable
data class Some<T>(val value: T) : Option<T>

Functions

Link copied to clipboard
fun destruct(): T?
Link copied to clipboard
fun expect(message: String): T