Type Aliases

The following type aliases are available globally.

  • Closure that takes no arguments and either throws or returns a A

    Declaration

    Swift

    public typealias Callable<A> = () throws -> A
  • Closure that takes one argument of A and either throws or returns a B

    Declaration

    Swift

    public typealias Function<A, B> = (A) throws -> B
  • Consumer callback/continuation

    Declaration

    Swift

    public typealias Consumer<A> = (A) -> Void