Skip to main content

detect_period

Function detect_period 

Source
pub fn detect_period(v: &[i64]) -> Option<usize>
Expand description

If v is an exact cyclic repetition of a minimal block of period 2 ≤ p ≤ min(len/2, cap), return p.