Type Aliases
The following type aliases are available globally.
-
Closure that takes no arguments and either throws or returns a
ADeclaration
Swift
public typealias Callable<A> = () throws -> A -
Closure that takes one argument of
Aand either throws or returns aBDeclaration
Swift
public typealias Function<A, B> = (A) throws -> B -
Consumer callback/continuation
Declaration
Swift
public typealias Consumer<A> = (A) -> Void