Introduction to OOP | Chapter 19: Container Classes : | next | previous | audio | real | text |
This is most common technique used in Smalltalk
aList do: [:x | ('element is' + x) print ].The block is passed as argument to the list, which turns around and executes the block on each element.