D
David A. Black
Hi --
Or maybe "all?!"
David
--
David A. Black, Senior Developer, Cyrus Innovation Inc.
The Ruby training with Black/Brown/McAnally
Compleat Philadelphia, PA, October 1-2, 2010
Rubyist http://www.compleatrubyist.com
Sorry, hit send by accident.On Fri, Jul 30, 2010 at 10:49 AM, Rick DeNatale
[].all? {|element| element != 3 } # => true
There may be a better name than non_vacuous_all? but I can't think of
one.
How about #appall? to imply that it is a pessimistic implementation of
#all?
How about 'every?' for the non-vacuous 'all?'?
If we really need one, that is.
Or maybe "all?!"
David
--
David A. Black, Senior Developer, Cyrus Innovation Inc.
The Ruby training with Black/Brown/McAnally
Compleat Philadelphia, PA, October 1-2, 2010
Rubyist http://www.compleatrubyist.com