Function toNullable
Turns an Optional in to a Nullable
Parameters
Name | Description |
---|---|
opt | the optional to convert from a Nullable!T |
Returns
An Nullable!T
Example
assert(some(3) .toNullable == Nullable!int(3));
assert(no!int .toNullable == Nullable!int());