home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
chapm20.zip
/
fixw30.cls
< prev
next >
Wrap
Text File
|
1995-06-19
|
684b
|
29 lines
"Initialization code"
!
!Collection methods !
collect: aBlock
"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 ! !
"Finalization code"
!
Transcript cr; nextPutAll: 'Bug Fixes VSW 3.0 installed.'!