>>>>> "Randal" == Randal L Schwartz <[EMAIL PROTECTED]> writes:

Randal> Huh?  Why the heck is that called #detectSum: instead of just #sum:?

[...]

Randal> /me makes a note to look under #detectFoo: next time

In fact, now that I look at it, it's really not like #detectMax:, which
returns the *original* element that is the max, or #detect:, which returns
an *original* element that meets a test.  It's transformational, more
like #collect.  But since #sum already does that, it really should have
simply been named #sum:.

Sigh.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <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
_______________________________________________
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners

Reply via email to