Collecting Smalltalk idioms
Bob Arning
arning at charm.net
Tue Aug 10 15:55:39 UTC 1999
On Tue, 10 Aug 1999 07:54:47 -0700 Stephen Pope <stp at create.ucsb.edu> wrote:
>This is how it was done in the old PARC research image; do:andBetweenDo:
>is useful for many things.
>
>Another option is the ugly (but simple)
>
> aCollection do:
> [:each |
> each printOn: aStream.
> aStream nextPut: $,].
> aStream skip: -1
Except for the situation where the collection is empty. I posted a fix for just such code yesterday.
Cheers,
Bob
More information about the Squeak-dev
mailing list
|