News for hackers. Stuff that matters.
Re:Ask HN: What change in your programming technique has bee... by js8 on Friday January 24, 2020 @03:33AM (#22136424)
They are not equivalent - for loop prescribes the ordering of processing, but map and filter can work in any order. They are often associated with FP because to define these operators, you need to be able to pass functions as parameter to other functions, which is a thing that surprisingly many languages struggle with.

There are no comments on this comment yet.