Helper class for functions that take 2 arguments

Static methods

staticcurry<A, B, C> (f:A ‑> B ‑> C):A ‑> B ‑> C

staticfn<T, T2, T3> (fn:T ‑> T2 ‑> T3, restArgs:Dynamic):Dynamic

Lambda expressions

staticinline join<T1, T2> (fa:T1 ‑> T2 ‑> Void, fb:T1 ‑> T2 ‑> Void):T1 ‑> T2 ‑> Void

join creates a function that calls the 2 functions passed as arguments in sequence and passes the same argument values to the both of them.

staticmemoize<T1, T2, TOut> (callback:T1 ‑> T2 ‑> TOut, ?resolver:T1 ‑> T2 ‑> String):T1 ‑> T2 ‑> TOut

memoize wraps callback and calls it only once storing the result for future needs.

Computed results are stored in an internal map. The keys to this map are generated by the resolver function that by default directly converts the arguments into a string.

staticinline negate<T1, T2> (callback:T1 ‑> T2 ‑> Bool):T1 ‑> T2 ‑> Bool

Wraps callback in a function that negates its results.