let threshold = (0 &- range) % range
> It is somewhat inconvenient that Swift forces us to write so much code, but we must admit that the result is probably less likely to confuse a good programmer.Oh come on, it's basically just one extra character.