[Q] String>>withBlanksTrimmed

Michael Roberts mike at mjr104.co.uk
Mon Dec 15 02:34:20 UTC 2003


> > (result select: [:c | c ~= 0]) asString
> 
> More appropriate would be
> 
> 	(result copyUpTo: 0) asString
> 
> Also note that you can use #receiveDataInto: with a String instead of a 
> ByteArray, so the #asString conversion could be avoided.

Great tips,

thanks!

Mike



More information about the Squeak-dev mailing list