some<T> function

Option<T> some<T>(
  1. T t
)

Return a Some(t).

Shortcut for Option.of(r).

Implementation

Option<T> some<T>(T t) => Some(t);