Fix edge case for clamp_index() with any negative 'x' that is a multiple of 'len', was returning 'len' which is invalid index. Maybe the expression can be simplified back to a one-liner?
Fix edge case for clamp_index() with any negative 'x' that is a multiple of 'len', was returning 'len' which is invalid index. Maybe the expression can be simplified back to a one-liner?