[ENH] Minor collection improvements
Bob Arning
arning at charm.net
Sat Sep 11 13:33:32 UTC 1999
On Sat, 11 Sep 1999 07:08:20 -0400 "Andrew C. Greenberg" <werdna at gate.net> wrote:
>Particularly since there is an idiom for producing the desired string
>in the special case of a homogenous array of Character:
>
> String streamContents: [:s | anArray do: [:ch | s nextPut: ch]]
>
>I think that the present situation is probably better than special
>casing homogenous arrays of chars, given the overloading of #asString.
Or,
#($a $b $c $d $e) as: String
Cheers,
Bob
More information about the Squeak-dev
mailing list
|