OptionTPartial

public final class OptionTPartial<F> : Kind<ForOptionT, F>

Partial application of the OptionT type constructor, omitting the last parameter.

  • Lifts a value by wrapping the contained value in the effect into an Option.some value.

    Declaration

    Swift

    public static func liftF<A>(_ fb: Kind<F, A>) -> OptionTOf<F, A>

    Parameters

    fb

    Value to be lifted.

    Return Value

    A present Option wrapped in the effect.

  • Declaration

    Swift

    public static func hash<A>(_ fa: OptionTOf<F, A>, into hasher: inout Hasher) where A : Hashable
  • Declaration

    Swift

    public typealias S = F.S
  • Declaration

    Swift

    public static func get() -> OptionTOf<F, F.S>
  • Declaration

    Swift

    public static func set(_ s: F.S) -> OptionTOf<F, Void>