trinoise

Function tri

Source
pub fn tri(c: u8, base: u8) -> u8
Expand description

Maps 0 => 0, base - 2 => 1, base - 1 => 2.