toOptional

Converts a range or Nullable to an optional type

toOptional
(
T
)
(
auto ref Nullable!T nullable
)

Parameters

nullable Nullable!T

the Nullable to convert

Return Value

Type: auto

an optional of the element of range or Nullable Ditto

Meta