Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Fun.js – Just a sketch.
Why map isn't implemented:
function map(fun, coll) { if (exists(coll)) return _map(fun)(coll); return _map(fun); }
And why _map is defined in global scope? Shouldn't it be better defined inside map function? What are up/downsides in performance for this move?
There are no comments on this comment yet.
Why map isn't implemented:
Why use arguments when you can name your parameter in declaration?And why _map is defined in global scope? Shouldn't it be better defined inside map function? What are up/downsides in performance for this move?