flatten method
Converts from Maybe<Maybe<T>>
to Maybe<T>
Implementation
Maybe<T> flatten() {
if (this == null)
return None();
else
return this!.value;
}
Converts from Maybe<Maybe<T>>
to Maybe<T>
Maybe<T> flatten() {
if (this == null)
return None();
else
return this!.value;
}