"For each element in the receiver, evaluate aBlock with
that element as the argument. Answer a new collection
containing the results as its elements from the aBlock
evaluations."
"@25.02.94 ch: bug fix: use OrderedCollection instead of
self species as the class of the new collection."
| answer |
answer := OrderedCollection new.
self do: [ :element |
answer add: (aBlock value: element)].
^answer! !
!Collection class methods ! !
!Directory methods !
existingFileNamed: fileName
ifAbsent: exceptionBlock
"Answer the file named <fileName> contained within the receiver. If the name does not define an existing file within the receiver, answer the result of evaluating the <exceptionBlock>."