4 ms·
`for (var i=0; i<l.length; i++)` is so 1970. In Javascript, you have array.map and $.each, and can define functions in-place. Same applies to Python, BTW; get
by nine_k 13y ago
`for (var i=0; i<l.length; i++)` is so 1970.
In Javascript, you have array.map and $.each, and can define functions in-place.
Same applies to Python, BTW; get used to list comprehensions and generators and you cannot look back.