Optional

enum Optional<Wrapped> : ExpressibleByNilLiteral

Optional implements OptionalProtocol for use in generic constraints

  • The type which this optional wraps

    Declaration

    Swift

    public typealias WrappedType = Wrapped
  • return self

    Declaration

    Swift

    public func getWrapped() -> WrappedType?