none<R> method

Maybe<R>? none<R>(
  1. R none()
)

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();
}