[squeak-dev] Re: The Trunk: Collections-ul.401.mcz
laza at blobworks.com
Wed Nov 3 11:23:42 UTC 2010
> - 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.
anInteger ifNotNil: [:i | i squared].
aCollection ifNotNil: [:c | c average].
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