Functions
The following functions are available globally.
-
Declaration
Swift
public func <^><R, A, B>(f: A -> B, cont: Continuation<R, A>) -> Continuation<R, B>
-
Declaration
Swift
public func <*><R, A, B>(f: Continuation<R, A -> B>, cont: Continuation<R, A>) -> Continuation<R, B>
-
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 tof
may be called at any point toescape
the continuation.Declaration
Swift
public func callcc<R, A, B>( f: (A -> Continuation<R, B>) -> Continuation<R, A> ) -> Continuation<R, A>
-
Declaration
Swift
public func <^><T, U>(f: T -> U, stream: Stream<T>) -> Stream<U>
-
Declaration
Swift
public func <*><T, U>(f: Stream<T -> U>, stream: Stream<T>) -> Stream<U>
-
Declaration
Swift
public func >>==<T, U>(stream: Stream<T>, f: T -> Stream<U>) -> Stream<U>
-
Declaration
Swift
public func +<T>(a: Stream<T>, b: Stream<T>) -> Stream<T>
-
Undocumented
-
Undocumented
-
Undocumented
-
Declaration
Swift
public func <^><T, U>(f: T -> U, channel: Channel<T>) -> Channel<U>
-
Declaration
Swift
public func <*><A, B>(f: Channel<A -> B>, a: Channel<A>) -> Channel<B>
-
Declaration
Swift
public func >>==<T, U>(channel: Channel<T>, f: T -> Channel<U>) -> Channel<U>
-
Declaration
Swift
public func +<T>(a: Channel<T>, b: Channel<T>) -> Channel<T>
-
Declaration
Swift
public func <^><T, U>(f: T -> U, future: Future<T>) -> Future<U>
-
Declaration
Swift
public func <*><A, B>(f: Future<A -> B>, a: Future<A>) -> Future<B>
-
Declaration
Swift
public func >>==<T, U>(future: Future<T>, f: T -> Future<U>) -> Future<U>
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Undocumented
-
Compose two functinos.
See moreDeclaration
Swift
public func *<A, B, C>(g: B -> C, f: A -> B) -> A -> C
-
Add one element to the beginning of an array.
See moreDeclaration
Swift
public func +<T>(element: T, array: [T]) -> [T]
-
Add one element to the end of an array.
See moreDeclaration
Swift
public func +<T>(array: [T], element: T) -> [T]