inject:into:
Alexandre Bergel
bergel at iam.unibe.ch
Wed Nov 10 08:50:08 UTC 2004
Hi!
I am wondering why the binaryBlock passed to an 'inject:into:' do not bound the current element to the first argument. In some other words why do we write:
#(a b c) inject: '' into: [:partialAnswer :el| partialAnswer , el]
and not:
#(a b c) inject: '' into: [:el :partialAnswer| partialAnswer , el]
It would more make sense, at least for me.
Alexandre
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.iam.unibe.ch/~bergel
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
More information about the Squeak-dev
mailing list
|