Refactoring with Loops and Collection Pipelines
Refactoring with Loops and Collection Pipelines:
The loop is the classic way of processing collections, but with the greater adoption of first-class functions in programming languages the collection pipeline is an appealing alternative. In this article I look at refactoring loops to collection pipelines with a series of small examples. via Pocket