Optional.of

Constructs an optional value using a given value.

struct Optional(T)
static
of
()

Parameters

value T

The value to use.

Return Value

Type: Optional!T

An optional that contains the given value.