ResourcePartial
public final class ResourcePartial<F> : Kind<ForResource, F> where F : Bracket
Partial application of the Resource type constructor, omitting the last parameter.
-
Declaration
Swift
public static func map<A, B>( _ fa: ResourceOf<F, A>, _ f: @escaping (A) -> B) -> ResourceOf<F, B>
-
Declaration
Swift
public static func pure<A>(_ a: A) -> ResourceOf<F, A>
-
Declaration
Swift
public static func flatMap<A, B>( _ fa: ResourceOf<F, A>, _ f: @escaping (A) -> ResourceOf<F, B>) -> ResourceOf<F, B>
-
Declaration
Swift
public static func tailRecM<A, B>( _ a: A, _ f: @escaping (A) -> ResourceOf<F, Either<A, B>>) -> ResourceOf<F, B>