Collection Performance: Creating New Collection From A Collection Using for() & foreach()

It’s common in programming to create a collection from a collection using for(), foreach() and ForEach(). Usually, business logic is applied to the items before they are put into the new collection. This article will focus on doing that along with discussing capacity. Updated February 2023.