On Thursday, 14 February 2013 at 20:28:23 UTC, Jacob Carlborg wrote:
On 2013-02-14 21:23, tn wrote:

Yes for a default predicate, BUT I think it should be "a => a" (that is, identity function) instead of "a => true". Same default predicate should be applied to "all" function as well. This way the behavior with boolean ranges would match the behavior of "any" and "all" at least in Python
and Matlab (and apparently also Ruby).

Right. But the problem with that is that a zero in D is considered false wheres in Ruby it's true. The only things that are false in Ruby is "nil" and "false".

In python and matlab 0 is false and "any" treats them as such.

Reply via email to