Type Alias
Optional
Either an instance of T or the absence thereof.
typealias Optional = Union<T, None<T>>
Details
Use Optional when you need to represent a value that may or may not be present.
Either an instance of T or the absence thereof.
typealias Optional = Union<T, None<T>>
Use Optional when you need to represent a value that may or may not be present.