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.

Reply via email to