staticccw<P1, P2, P3, P4, R> (f:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R):P2 ‑> P3 ‑> P4 ‑> P1 ‑> R
Pushes first parameter to the last
staticcurry<P1, P2, P3, P4, R> (f:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R):P1 ‑> P2 ‑> P3 ‑> P4 ‑> R
Produces a function that produces a function for each parameter in the originating function. When these functions have been called, the result of the original function is produced.
staticenclose<P1, P2, P3, P4, R> (f:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R):P1 ‑> P2 ‑> P3 ‑> P4 ‑> Void
Produces a function that calls f
, ignoring the result.
staticequals<P1, P2, P3, P4, R> (a:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R, b:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R):Bool
Compares identity of methods.
staticlazy<P1, P2, P3, P4, R> (f:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R, p1:P1, p2:P2, p3:P3, p4:P4):Thunk<R>
Produdes a function that calls f
with the given parameters p1....pn
.
staticreturning<P1, P2, P3, P4, R1, R2> (f:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R1, thunk:Thunk<R2>):P1 ‑> P2 ‑> P3 ‑> P4 ‑> R2
Produces a function that calls f
, ignores its result, and returns the result produced by thunk.
staticswallow<A, B, C, D> (f:A ‑> B ‑> C ‑> D ‑> Void):A ‑> B ‑> C ‑> D ‑> Void
Produces a function that ignores any error the occurs whilst calling the input function.
staticswallowWith<A, B, C, D, R> (f:A ‑> B ‑> C ‑> D ‑> R, def:R):A ‑> B ‑> C ‑> D ‑> R
Produces a function that ignores any error the occurs whilst calling the input function, and produces d
if error occurs.
staticuncurry<P1, P2, P3, P4, R> (f:P1 ‑> P2 ‑> P3 ‑> P4 ‑> R):P1 ‑> P2 ‑> P3 ‑> P4 ‑> R
Takes a function with one parameter that returns a function of one parameter, and produces a function that takes two parameters that calls the two functions sequentially,