sergio_101 <sergiol...@village-buzz.com> writes:

Hello

> is there a function that can do this:
>
> 'a mouse ate cheese' . 'A Mouse Ate Cheese'
>
> i found capitlize, but that only hits the first word..

There is a shorter way, I guess, but

('a mouse ate cheese' substrings inject: '' into: [:start :each | start,
' ', each capitalized])

does it for me.

bye
Enno
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to