map is fully lazy.However, if you've already got the sorted indices in `order`, I would do this:auto numLessThanN = numbers.indexed(order).countUntil!((x) => x >= N)();
That indexed command is perfect though, does the trick, thank you very much.
Andrew Brown via Digitalmars-d-learn Wed, 11 Jun 2014 04:55:48 -0700
map is fully lazy.However, if you've already got the sorted indices in `order`, I would do this:auto numLessThanN = numbers.indexed(order).countUntil!((x) => x >= N)();
That indexed command is perfect though, does the trick, thank you very much.