CoTPartial

public final class CoTPartial<W, M> : Kind2<ForCoT, W, M> where W : Comonad

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

  • Declaration

    Swift

    public static func map<A, B>(
        _ fa: CoTOf<W, M, A>,
        _ f: @escaping (A) -> B) -> CoTOf<W, M, B>
  • Declaration

    Swift

    public typealias D = W.E
  • Declaration

    Swift

    public static func ask() -> CoTOf<W, M, W.E>
  • Declaration

    Swift

    public static func local<A>(
        _ fa: CoTOf<W, M, A>,
        _ f: @escaping (W.E) -> W.E) -> CoTOf<W, M, A>
  • Declaration

    Swift

    public typealias S = W.S
  • Declaration

    Swift

    public static func get() -> CoTOf<W, M, W.S>
  • Declaration

    Swift

    public static func set(_ s: W.S) -> CoTOf<W, M, ()>