Simen kjaeraas <simen.kja...@gmail.com> wrote:
Special cases come for input ranges - I will not consider those. All forward ranges can be treated the same, regardless of infiniteness.
Actually, input ranges make everything a lot easier - the best solution is the brute-force stupid solution. -- Simen