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.
https://martinfowler.com/articles/refactoring-pipelines.html
Collection pipelines are a programming pattern