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