toOption

fun <T> T?.toOption(): Option<T>(source)


suspend fun <A> Effect<None, A>.toOption(): Option<A>(source)

Run the Effect by returning Option of A, or None if raised with None.


Run the EagerEffect by returning Option of A, or None if raised with None.