StateTPartial
Partial application of the StateT type constructor, omitting the last type argument.
-
Lifts an effect by wrapping the contained value into a function that depends on some state.
Parameters
fa
Value to be lifted.
Return Value
A
StateT
that produces the contained value in the original effect, preserving the state.
-
Declaration
Swift
public static func pure<A>(_ a: A) -> StateTOf<F, S, A>
-
Declaration
Swift
public static func emptyK<A>() -> StateTOf<F, S, A>
-
Declaration
Swift
public static func empty<A>() -> StateTOf<F, S, A>
-
Declaration
Swift
public typealias E = F.E
-
Declaration
Swift
public typealias D = F.D
-
Declaration
Swift
public typealias W = F.W