mapSome<T, U> static method
Implementation
static Maybe<U> mapSome<T, U>(Maybe<T> maybe, U Function(T v) converter) {
if (isNothing(maybe)) {
return Maybe<U>.nothing();
}
return Maybe.some(converter(maybe._value!));
}