mapJust<K> method
A method to chain access to data held by the Maybe. If this is Nothing returns Nothing, if this is Just, returns the result of the combiner method over the value inside Just
Implementation
Maybe<K> mapJust<K>(Maybe<K> Function(T) combiner) {
return switch (this) {
Nothing<T>() => Nothing<K>(),
Just<T>(:final value) => combiner(value),
};
}