Functions

The following functions are available globally.

  • Operator for Continuation.map

    See

    Continuation.map
    See more

    Declaration

    Swift

    public func <^><R, A, B>(f: A -> B, cont: Continuation<R, A>) -> Continuation<R, B>
  • Operator for Continuation.apply

    See

    Continuation.apply
    See more

    Declaration

    Swift

    public func <*><R, A, B>(f: Continuation<R, A -> B>, cont: Continuation<R, A>) -> Continuation<R, B>
  • Operator for Continuation.flatMap

    See

    Continuation.flatMap
    See more

    Declaration

    Swift

    public func >>==<R, A, B>(cont: Continuation<R, A>, f: A -> Continuation<R, B>) -> Continuation<R, B>
  • Call Current Continuation.

    The function f has access to control of the next continuation. The parameter passed to f may be called at any point to escape the continuation.

    Declaration

    Swift

    public func callcc<R, A, B>(
        f: (A -> Continuation<R, B>) -> Continuation<R, A>
    ) -> Continuation<R, A>
  • Operator for Stream.map.

    See

    Stream.map
    See more

    Declaration

    Swift

    public func <^><T, U>(f: T -> U, stream: Stream<T>) -> Stream<U>
  • Operator for Stream.apply.

    See

    Stream.apply
    See more

    Declaration

    Swift

    public func <*><T, U>(f: Stream<T -> U>, stream: Stream<T>) -> Stream<U>
  • Operator for Stream.flatMap.

    See

    Stream.flatMap
    See more

    Declaration

    Swift

    public func >>==<T, U>(stream: Stream<T>, f: T -> Stream<U>) -> Stream<U>
  • Operator for Stream.appended

    See

    Stream.appended
    See more

    Declaration

    Swift

    public func +<T>(a: Stream<T>, b: Stream<T>) -> Stream<T>
  • Operator for Channel.map

    See

    Channel.map
    See more

    Declaration

    Swift

    public func <^><T, U>(f: T -> U, channel: Channel<T>) -> Channel<U>
  • Operator for Channel.apply

    See

    Channel.apply
    See more

    Declaration

    Swift

    public func <*><A, B>(f: Channel<A -> B>, a: Channel<A>) -> Channel<B>
  • Operator for Channel.flatMap

    See

    Channel.flatMap
    See more

    Declaration

    Swift

    public func >>==<T, U>(channel: Channel<T>, f: T -> Channel<U>) -> Channel<U>
  • Operator for Channel.appended

    See

    Channel.appended
    See more

    Declaration

    Swift

    public func +<T>(a: Channel<T>, b: Channel<T>) -> Channel<T>
  • Operator for Future.map

    See

    Future.map
    See more

    Declaration

    Swift

    public func <^><T, U>(f: T -> U, future: Future<T>) -> Future<U>
  • Operator for Future.apply

    See

    Future.apply
    See more

    Declaration

    Swift

    public func <*><A, B>(f: Future<A -> B>, a: Future<A>) -> Future<B>
  • Operator for Future.flatMap

    See

    Future.flatMap
    See more

    Declaration

    Swift

    public func >>==<T, U>(future: Future<T>, f: T -> Future<U>) -> Future<U>
  • Compose two functinos.

    See more

    Declaration

    Swift

    public func *<A, B, C>(g: B -> C, f: A -> B) -> A -> C
  • Add one element to the beginning of an array.

    See more

    Declaration

    Swift

    public func +<T>(element: T, array: [T]) -> [T]
  • Add one element to the end of an array.

    See more

    Declaration

    Swift

    public func +<T>(array: [T], element: T) -> [T]