[Squeak] Newbie permutations

Richard A. O'Keefe ok at cs.otago.ac.nz
Tue Apr 9 23:45:56 UTC 2002


goran.hultgren at bluefish.se wrote:
	> #(1 3 5) permutationsDo: [:each | a addLast: each copy ].

	The copy is not really needed.

Yes it is, because otherwise the result will contain several references
to the _same_ permutation, instead of references to _different_ permutations.



More information about the Squeak-dev mailing list