Enumeration Case

Optional.none

The absence of a value.

Declaration

case none

Discussion

In code, the absence of a value is typically written using the nil literal rather than the explicit .none enumeration case.

See Also

Creating a Nil Value

init(nilLiteral: ())

Creates an instance initialized with nil.