Ben_Cohen
(Ben Cohen)
3
I think there should probably be a precondition here that the starting and ending point be in the right order for the direction of the offset – so this ought to trap. @moiseev was looking at this code a while back when conditional conformance was first introduced, he might have a view.
Note Set and Dictionary are forward-only, so cannot take a negative offset and would always trap if the starting point was before the end point.
2 Likes