pub fn wrap_prev(current: usize, len: usize) -> usize
Previous index in a list, wrapping around to len - 1 from index 0. Returns 0 if len is 0.
len - 1
len