Appending a character to a string

Damien Cassou damien.cassou at laposte.net
Sun Feb 11 20:06:58 UTC 2007


Philippe Marschall a écrit :
> 2007/2/11, Jon Hylands <jon at huv.com>:
>> On Sun, 11 Feb 2007 18:00:21 +0100, Damien Cassou
>> <damien.cassou at laposte.net> wrote:
>>
>> > However, #, only works with collections. I'm obliged to use #copyWith:
>> > instead. Is there a pattern to do this without using Streams ?
>>
>> self doSomethingWith: myString, (String with: Character cr), 
>> anotherString.
> 
> I find that quite ugly. For many things like this there are:
> String space
> String cr
> String crlf
> String tab

Nice try Philippe, however, there is no String>>space :-) (at least in 
my squeak-dev-76 image).



-- 
Damien Cassou



More information about the Squeak-dev mailing list