Option<T>.some constructor
const
Option<T>.some (
- T value
Constructs a Some option from the given value.
Implementation
const factory Option.some(T value) = Some;
Constructs a Some option from the given value.
const factory Option.some(T value) = Some;