//arrow-core/arrow.core/maybe

maybe

common inline fun <A> Boolean.maybe(f: () -> A): Option<A>

Do you like Arrow?

Arrow Org
<