[ENH] String repeat

Andres Valloud avalloud at exobox.com
Wed May 31 02:46:36 UTC 2000


Hi Lex.

> This is a neat algorithm.  Why not use it to replace atAllPut:, though?
> This seems to be the method that new:withAll: depends on.
>
>         String new: 1000000 withAll: $0

It's already done in changeset 2018. That update replaces atAllPut:
anObject in SequenceableCollection. You will find a switch that controls
whether to:do: or from:to:put: is used.

Andres.

PS: I am happy you liked the algorithm in from:to:put: :)))))...





More information about the Squeak-dev mailing list