[squeak-dev] Re:Collection>>sum implementation

Randal L. Schwartz merlyn at stonehenge.com
Mon Aug 11 20:47:25 UTC 2008


>>>>> "Jerome" == Jerome Peace <peace_the_dreamer at yahoo.com> writes:

Jerome> You let it tell you:

Jerome> any := myCollection anyone  .
Jerome> zeroElement := any - any .

This presumes that anything that implements #+ is also expected
to implement #-.  Yes, that was also present in the original implementation,
but a version that doesn't require that would be nice.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn at stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion



More information about the Squeak-dev mailing list