pub fn wrap_order(n: usize, sel: usize, forward: bool) -> Vec<(usize, bool)>Expand description
Visit order for a wrapping scan over n entries starting after
(before, when backwards) sel: each index paired with a flag set
once the walk passed the end (start). The starting index comes
last, so a lone match under the cursor still counts as a wrap.