Flatten a list: Difference between revisions

Line 2,611:
Here is a non-OOP (but functional) version, which uses a block-closure as function (showing higher order features of Smalltalk):
 
<lang smalltalk>|flatDo collection|
 
flatDo :=
[:element :action |
Anonymous user