MonadWriter

public protocol MonadWriter : Monad

Undocumented

  • W

    Undocumented

    Declaration

    Swift

    associatedtype W
  • Undocumented

    Declaration

    Swift

    static func writer<A>(_ aw: (W, A)) -> Kind<Self, A>
  • Undocumented

    Declaration

    Swift

    static func listen<A>(_ fa: Kind<Self, A>) -> Kind<Self, (W, A)>
  • Undocumented

    Declaration

    Swift

    static func pass<A>(_ fa: Kind<Self, ((W) -> W, A)>) -> Kind<Self, A>
  • tell(_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func tell(_ w: W) -> Kind<Self, ()>
  • listens(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func listens<A, B>(_ fa: Kind<Self, A>, _ f: @escaping (W) -> B) -> Kind<Self, (B, A)>
  • censor(_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func censor<A>(_ fa: Kind<Self, A>, _ f: @escaping (W) -> W) -> Kind<Self, A>