SomeMethodsExtension<T extends Object> extension
- on
-
- Some<
T>
- Some<
Methods
-
and<
U extends Object> (Option< U> other) → Option<U> -
andThen<
U extends Object> (Option< U> f(T self)) → Option<U> -
copy(
) → Some< T> -
expect(
String msg) → T -
filter(
bool predicate(T self)) → Option< T> -
inspect(
dynamic f(T self)) → Some< T> -
isNone(
) → bool -
isSome(
) → bool -
isSomeAnd(
bool f(T self)) → bool -
iter(
) → RIterator< T> -
map<
U extends Object> (U f(T self)) → Some< U> -
mapOr<
U> (U defaultValue, U f(T)) → U -
mapOrElse<
U> (U defaultFn(), U f(T)) → U -
okOr<
E extends Object> (E err) → Ok< T, Never> -
okOrElse<
E extends Object> (E errFn()) → Ok< T, Never> -
or(
Option< T> other) → Some<T> -
orElse(
Option< T> f()) → Some<T> -
toNullable(
) → T? -
unwrap(
) → T -
unwrapOr(
T defaultValue) → T -
unwrapOrElse(
T f()) → T -
xor(
Option< T> other) → Option<T> -
zip<
U extends Object> (Option< U> other) → Option<(T, U)> -
zipWith<
U extends Object, R extends Object> (Option< U> other, R f(T p1, U p2)) → Option<R>
Operators
-
operator [](
_OptionEarlyReturnKey op) → T