On Thursday, 15 January 2015 at 13:59:04 UTC, Tobias Pankrath
wrote:
StoppingPolicy is not a template parameter, it is this one:
http://dlang.org/phobos/std_range.html#.StoppingPolicy
Ok, great!
However, none of the variants of zip, including all the three
policies, fulfills my needs in
assert(commonPrefixLength([1, 2, 3, 10],
[1, 2, 3]), 3);
which fails because
commonPrefixLength([1, 2, 3, 10],
[1, 2, 3])
evaluates to -1.
This seems like a serious limitation that should be realized in
yet another policy.