countUntil in std.algorithm should work fine. http://dlang.org/phobos/std_algorithm.html#countUntil
Yup, it does! Just didn't see it there in the algorithm collection.
Thanks a lot.
countUntil in std.algorithm should work fine. http://dlang.org/phobos/std_algorithm.html#countUntil
Yup, it does! Just didn't see it there in the algorithm collection.
Thanks a lot.