10 ms·
Just as an example, writing #( 1 2 3 4 5 ) + 5 would actually be even more compact and more intuitive. A Smalltalk developer would interpret this as #+ being im
by fmateoc 13y ago
Just as an example, writing
#( 1 2 3 4 5 ) + 5
would actually be even more compact and more intuitive. A Smalltalk developer would interpret this as #+ being implemented in Collection, and the expectation would be that the implementation of #+ would be something like
+ arg
^self collect: [:each | each + arg]