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