some()
some<
A>(a):Option<A>
Creates a Some containing the given value.
Type Parameters
A: A
The value type.
Parameters
a: A
The value to wrap.
Returns: Option<A>
A Some containing the value.
Since
2.0.0
Some<A>
Represents the presence of a value.
Since
2.0.0
Type Parameters
A: A
The value type.
Properties
_tag: > readonly *\_tag*: "Some"
value
readonlyvalue:A