public class Function0<A> : Function0Of<A>
This data type acts as a wrapper over functions that receive no input and produce a value; namely, constant functions. This wrapper gives these functions capabilities to be used as a Higher Kinded Type and conform to typeclasses that have this requirement.
public static func fix(_ fa: Function0Of<A>) -> Function0<A>
Value in the higher-kind form.
Value cast to
Constructs a value of
public init(_ f: @escaping () -> A)
A constant function.
Invokes the function.
public func invoke() -> A
Value produced by this function.