Skip to main content

last_turns_start

Function last_turns_start 

Source
pub(crate) fn last_turns_start(lines: &[String], turns: usize) -> Option<usize>
Expand description

Index in lines where the last turns turns begin; None when there are fewer. Scans from the end and stops at the turns-th start.