tuple2
Binary tuples
let curry: <a, b, c>(_: (_: [a, b]) => c) => (_: a) => (_: b) => c
The call curry(f,x,y)
has the same value as f(x,y)
.
let uncurry: <a, b, c>(_: (_: a) => (_: b) => c) => (_: [a, b]) => c
The call uncurry(f,[x,y])
has the same value as f(x)(y)
.