Optional

@frozen
public extension Optional
  • Returns unwrapped value, or fails.

    Declaration

    Swift

    func orFail(_ message: String = "unwrapping nil") -> Wrapped

    Parameters

    message

    Failure message

    Return Value

    Unwrapped value

  • Undocumented

    Declaration

    Swift

    public var isNotNil: Bool { get }
  • Key

    Declaration

    Swift

    public typealias Key = Wrapped.Key
  • Declaration

    Swift

    public typealias Value = Wrapped.Value
  • Declaration

    Swift

    public init(dictionaryLiteral elements: (Key, Value)...)