Skip to main content

reflect

Function reflect 

Source
fn reflect(value: i32, max: i32) -> i32
Expand description

All larger folds repeat a periodic mapping pattern given by the final fold, so a single modulo followed by a reflection back into range replaces every intermediate fold.