Returns true if the value is Some.

Namespace:  Sasa
Assembly:  Sasa (in Sasa.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function IsSome(Of T) ( _
	o As Option(Of T) _
) As Boolean
C#
public static bool IsSome<T>(
	Option<T> o
)
Visual C++
public:
generic<typename T>
static bool IsSome(
	Option<T>^ o
)
JavaScript
JavaScript does not support generic types or methods.

Parameters

o
Type: Sasa..::.Option<(Of <(T>)>)
The optional value.

Type Parameters

T
The type of the optional value.

Return Value

True if the option type encapsulates a real value.

See Also