Concept Flow - Iterating collections with forEach
Start with collection
Call forEach on collection
Take first element
Execute lambda with element
Take next element?
No→End
↩Back to Execute lambda
The forEach function takes each element from a collection one by one and runs the given code block (lambda) on it until all elements are processed.