-
Undocumented
Declaration
Swift
public let value: _Free<F, A>
-
Creates a Free value.
Declaration
Swift
public static func free(_ fa: Kind<F, Free<F, A>>) -> Free<F, A>
Parameters
fa
Value to be embedded in Free.
Return Value
A Free value.
-
Lifts a value in the context of the Functor into the Free context.
Declaration
Swift
public static func liftF(_ fa: Kind<F, A>) -> Free<F, A>
Parameters
fa
A value in the context of the provided Functor.
Return Value
A Free value.
-
Safe downcast.
Declaration
Swift
public static func fix(_ fa: FreeOf<F, A>) -> Free<F, A>
Parameters
fa
Value in the higher-kind form.
Return Value
Value cast to Free.