pub fn detect_cycle(lines: &[&str]) -> Option<(usize, usize, usize)>Expand description
Detect a single repeating cycle in a slice of lines.
Returns Some((start, period, count)) where the cycle begins at
start, each iteration is period lines, and it repeats count times.