toOption

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


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

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.