Option<TValue>.some constructor

const Option<TValue>.some(
  1. TValue value
)

Creates a Some instance.

value is the value that will be contained in the Some instance.

Implementation

const factory Option.some(TValue value) = Some<TValue>;