[squeak-dev] Collection>sum fails on empty collection

tim Rowledge tim at rowledge.org
Tue Jan 8 22:24:04 UTC 2019

> On 2019-01-08, at 1:54 PM, Nicolas Cellier <nicolas.cellier.aka.nice at gmail.com> wrote:
> You can always write:
>     ^collec inject: 0 into: #+

I'd not spotted that particular neat trick before - like it. It's a really interesting example of Smalltalk cleverness to make a simple symbol work as a block. Nice!

tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Multitasking:  Screwing up several things at once...

More information about the Squeak-dev mailing list