Static methods

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

Convert 1 function of 5 arguments into 5 functions of 1 argument

((a, b, c, d, e) -> a + b + c + d + e).curry() == a -> b -> c -> d -> e -> a + b + c + d + e;

staticuncurry<A, B, C, D, E, Z>(f:A ‑> B ‑> C ‑> D ‑> E ‑> Z):(A, B, C, D, E) ‑> Z

Convert 5 functions of 1 argument into 1 function of 5 arguments

(a -> b -> c -> d -> e -> a + b + c + d + e).uncurry() == (a, b, c, d, e) -> a + b + c + d + e;