FirstOption
public final class FirstOption<A>
Wrapper class to represent a constant present first option.
-
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>
-
Declaration
Swift
public static func empty() -> FirstOption<A>