[ANSI-Smalltalk] List of interesting methods, Collection
satisfaction
cstb
jas at cruzio.com
Tue Mar 25 02:33:44 GMT 2008
At 12:51 AM 3/22/2008, Paolo Bonzini wrote:
>Andres Valloud wrote:
>>Oops! Thank you for the correction.
>
>Actually both are correct. I asked on http://en.wikipedia.org/Wikipedia:Reference_desk/Language (search for "None") and started a tiny flame war. :-)
AllSatisfy: " for all x, ... is true "
AnySatisfy: " there exists x such that ... is true "
NotAllSatisfy: " there exists x such that ... is false "
NotAnySatisfy: " for all x, ... is false "
NoneSatisfy: " for all x, ... is false "
The first three, and then either or both
of the last two, above, would satisfy me.
Because
AllSatisfy: [:x| x _endsWith: 'fy']
and
NoneSatisfy: [:x| x _endsWith: 'fies']
is easier to remember than
NotAllSatisfy: [:x| x _endsWith: 'fy']
and
AnySatisfy: [:x| x _endsWith: 'fies'].
are.
(Hobgoblins not withwithstanding.)
-Jim
More information about the ANSI-Smalltalk
mailing list