Skip to main content

logos_run_through

Function logos_run_through 

Source
pub fn logos_run_through(first: i64, last: i64, len: usize) -> Range<usize>
Expand description

The items a counted loop over the indices first through last reads from a sequence of len items, in order, as the 0-based range they occupy: empty when first is past last, and otherwise the stop resolve_logos_index makes at the first index in the loop’s order that names no item. A backend that copies such a loop in one step copies this range, so it reads what the loop reads and stops where the loop stops. (A run that crosses 0 always stops at 0; one wholly below 0 counts from the back.)