3.2 The foreach iteration

Functional programming enables us to write 'internal' iterations instead of 'external' iterations. Let's understand the difference and use the new for-each method for iterating collections.