[squeak-dev] Re: The Trunk: Collections-ul.401.mcz
laza
laza at blobworks.com
Wed Nov 3 11:23:42 UTC 2010
commits-2 wrote:
>
> - added Symbol >> #cull:, so unary symbols can be used instead of monadic
> blocks where #cull: is sent to them (e.g. #ifNotNil:)
>
Sorry, I haven't followed any discussion on this. The intention is to be
able to write stuff like this?
anInteger ifNotNil: #squared.
aCollection ifNotNil: #average.
instead of
anInteger ifNotNil: [:i | i squared].
aCollection ifNotNil: [:c | c average].
Alex
--
View this message in context: http://forum.world.st/The-Trunk-Collections-ul-401-mcz-tp3024077p3025178.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|