3 ms·
So who creates the λ functional JavaScript library?
by jacobr 15y ago
So who creates the λ functional JavaScript library?
- ajuc 15y agoI'll start: function λ(code) { return eval( "function () {"+ " var $=arguments;" + " return " + code + ";" "}" ); } var sum = map([1,2,3,4], λ("$[0] + $[1]")); I'm not really serious, but I'd like eval-less version of this, very, very much. function(x,y) { return x*y; } is so verbose.