aoc::year2024::day22::scalar

Function to_index

Source
fn to_index(previous: u32, current: u32) -> u32
Expand description

Convert -9..9 to 0..18.