News for hackers. Stuff that matters.
Re:Magical, Mystical JavaScript Transducers by dheerajvs on Saturday June 29, 2019 @02:37AM (#20311119)
Nitpick: There should be a check for zero count to avoid a divide-by-zero. It's missing in the original article as well.
Re:Magical, Mystical JavaScript Transducers by ec109685 on Saturday June 29, 2019 @06:43AM (#20311852)
Why isn’t NaN the right result for the average of an empty set?