On Tuesday, 3 November 2015 at 15:29:31 UTC, Namal wrote:
well I tried this that way, but my count stays 0, same as if I do it in an int function with a return though I clearly have some false elements in the arr.
You could also use count: http://dlang.org/phobos/std_algorithm_searching.html#count
return arr.count!(x => !x);
