4 ms·
Because there's no need to burden ourselves (and, perhaps more importantly, the people who'll have to maintain the code after us) with a whack of boilerplate fo
by eropple 15y ago
Because there's no need to burden ourselves (and, perhaps more importantly, the people who'll have to maintain the code after us) with a whack of boilerplate for a fairly simple function.
(Also, you can use enclosed variables inside of map/fold constructs, which would be hard to express via objects.)