[Array] map: [Block]. | Manual

[Array] map: [Block].

Iterates over the array. Passing each element as a key-value pair to the specified block. The map message will pass the following arguments to the block, the key, the value and a reference to the array itself. The last argument might seem redundant but allows for a more functional programming style.
Usage:


 files map: showName.
 files map: {
   :key :filename :files
   Pen write: filename, brk.
 }.

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.