FirstOption

public final class FirstOption<A>

Wrapper class to represent a constant present first option.

  • Undocumented

    Declaration

    Swift

    public let const: Const<Option<A>, First>
  • Initializes a constant first option.

    Declaration

    Swift

    public init(_ value: A)

    Parameters

    value

    Value to be wrapped.

  • Initializes a constant first option.

    Declaration

    Swift

    public init(_ value: Option<A>)

    Parameters

    value

    Option to be wrapped.

  • Declaration

    Swift

    public func combine(_ other: FirstOption<A>) -> FirstOption<A>