Anonymous user
Flatten a list: Difference between revisions
→{{header|Smalltalk}}
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 :=
[:element :action |
|