join
Keith Hodges
keith_hodges at yahoo.co.uk
Fri Sep 15 02:16:47 UTC 2006
Thanks Avi,
thats just the method that I was looking for! So please let's get it
added to the base image ;-)
This request is somewhat academic since I am stuck in 3.8 for a while
until Magma supports 3.9.
Keith
>>
>> - the most important one is, that nobody needs it (or else you would
>> have found it). Imagine Pearl with the full Squeak Stream hierarchy,
>> why use join?
>
> Sure we need it. At Smallthought, we have a package of utility
> methods that includes:
>
> SequencableCollection>>joinTokens: aString
> ^ String streamContents:
> [:s |
> self do: [:ea | s nextPutAll: ea asString] separatedBy: [s
> nextPutAll: aString]]
>
> Looking through my sends to it, the argument is always either ' ' or
> ', ', so #joinedWithSpaces and #joinedWithCommas would probably be
> sensible methods to have too.
>
> Avi
>
>
___________________________________________________________
All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine
http://uk.docs.yahoo.com/nowyoucan.html
More information about the Squeak-dev
mailing list
|