POptional Getter
An OptionalGetter is an optic that allows into a structure and querying an optional focus.
Parameters
Types
Functions
Link copied to clipboard
Join two Fold with the same target
open infix fun <S1, T1> choice(other: POptionalGetter<S1, T1, A>): POptionalGetter<Either<S, S1>, Either<T, T1>, A>
Content copied to clipboard
Join two POptionalGetter with the same focus
Link copied to clipboard
Alias for fold.
Link copied to clipboard
Link copied to clipboard
Find the first element matching the predicate, if one exists.
Link copied to clipboard
Get the first target or null
Link copied to clipboard
Get the focus of an OptionalGetter or return the original value while allowing the type to change if it does not match
Link copied to clipboard
Get the focus of an OptionalGetter or null
if the is not there
Link copied to clipboard
Check if there is at least one target
Link copied to clipboard
Get the last target or null