none<R> method
When it not has Value Return Some(none(it))
otherwise return None(null
)
Implementation
Maybe<R> none<R>(R none()) {
if (this == null) return Some(none());
return None();
}
When it not has Value Return Some(none(it))
otherwise return None(null
)
Maybe<R> none<R>(R none()) {
if (this == null) return Some(none());
return None();
}