News for hackers. Stuff that matters.
Re:What if you couldn’t program with loops? by akavi on Monday July 15, 2019 @10:27AM (#20441118)
`map` is strictly less "powerful" than a "loop", so I'd argue that's misleading.

Which I'd also argue is a good thing. Using the least powerful construct available both communicates to future readers of the code, and allows higher level optimization (eg, `map` is trivially parallelizable, an arbitrary loop is not)

Re:What if you couldn’t program with loops? by thaumasiotes on Monday July 15, 2019 @03:35PM (#20444345)
But `map` is not a primitive. It's just a function implemented with... a loop. It's hard to argue that that doesn't make it "some kind of loop".