StateTPartial

public final class StateTPartial<F, S> : Kind2<ForStateT, F, S>

Partial application of the StateT type constructor, omitting the last type argument.

  • Declaration

    Swift

    public static func map<A, B>(_ fa: Kind<StateTPartial<F, S>, A>, _ f: @escaping (A) -> B) -> Kind<StateTPartial<F, S>, B>
  • Declaration

    Swift

    public static func pure<A>(_ a: A) -> Kind<StateTPartial<F, S>, A>
  • Declaration

    Swift

    public static func flatMap<A, B>(_ fa: Kind<StateTPartial<F, S>, A>, _ f: @escaping (A) -> Kind<StateTPartial<F, S>, B>) -> Kind<StateTPartial<F, S>, B>
  • Declaration

    Swift

    public static func tailRecM<A, B>(_ a: A, _ f: @escaping (A) -> Kind<StateTPartial<F, S>, Either<A, B>>) -> Kind<StateTPartial<F, S>, B>
  • Declaration

    Swift

    public static func get() -> Kind<StateTPartial<F, S>, S>
  • Declaration

    Swift

    public static func set(_ s: S) -> Kind<StateTPartial<F, S>, ()>
  • Declaration

    Swift

    public static func combineK<A>(_ x: Kind<StateTPartial<F, S>, A>, _ y: Kind<StateTPartial<F, S>, A>) -> Kind<StateTPartial<F, S>, A>
  • Declaration

    Swift

    public static func emptyK<A>() -> Kind<StateTPartial<F, S>, A>
  • Declaration

    Swift

    public static func empty<A>() -> Kind<StateTPartial<F, S>, A>
  • Declaration

    Swift

    public typealias E = F.E
  • Declaration

    Swift

    public static func raiseError<A>(_ e: F.E) -> Kind<StateTPartial<F, S>, A>
  • Declaration

    Swift

    public static func handleErrorWith<A>(_ fa: Kind<StateTPartial<F, S>, A>, _ f: @escaping (F.E) -> Kind<StateTPartial<F, S>, A>) -> Kind<StateTPartial<F, S>, A>