blob: a3ce3ea34a57988df67c00b83858129fabc67b9f (
plain)
1
2
3
4
5
6
7
8
|
// Arrow right-associativity.
var t = a => b => a;
assertEq(t('A')('B'), 'A');
var curry = f => a => b => f(a, b);
var curried_atan2 = curry(Math.atan2);
assertEq(curried_atan2(0)(1), 0);
|