Function: some()
some<
T>(value):Some<T>
Defined in: option/constructors/index.ts:17
Creates a Some Option containing a value.
Type Parameters
T
T
Parameters
value
T
The value to wrap
Returns
Some<T>
A Some Option containing the value
Example
const result = some(42)
// => { _tag: 'Some', value: 42 }