arrow-core-data / arrow.core / Some

Some

data class Some<out T> : Option<T>

Constructors

<init> Some(t: T)

Properties

t val t: T

Functions

isEmpty Returns true if the option is None, false otherwise.fun isEmpty(): Boolean
toString fun toString(): String

Extension Functions

altFromOption fun <F, A> Option<A>.altFromOption(AF: Alternative<F>): Kind<F, A>
getOrElse Returns the option’s value if the option is nonempty, otherwise return the result of evaluating default.fun <T> Option<T>.getOrElse(default: () -> T): T
select fun <A, B> Option<Either<A, B>>.select(f: <ERROR CLASS><(A) -> B>): Option<B>

Do you like Arrow?

Arrow Org
<