[Q] SequenceableCollection>>combinations: kk atATimeDo: aBlock
Richard A. O'Keefe
ok at cs.otago.ac.nz
Wed Dec 18 01:06:10 UTC 2002
"Ken Collins" <kenncoll123 at hotmail.com>
reminds us of a problem that has been seen before.
|oc|
oc _ OrderedCollection new.
((1 to: 12) combinations: 3 atATimeDo: [:e | oc add: e]).
The last line should be
((1 to: 12) combinations: 3 atATimeDo: [:e | oc add: e copy]).
^^^^
More information about the Squeak-dev
mailing list
|