RestrictedOptionEffect

fun interface RestrictedOptionEffect<A> : OptionEffect<A>

Functions

Link copied to clipboard
open suspend fun <B> Option<B>.bind(): B
Link copied to clipboard
abstract fun control(): DelimitedScope<Option<A>>
Link copied to clipboard
open suspend fun ensure(value: Boolean)

Ensure check if the value is true, and if it is it allows the option { } binding to continue. In case it is false, then it short-circuits the binding and returns None.