Return (math.floor((codepoint / (2 ^ low))) % math.floor((2 ^ (high - low)))) end.

When to switch from the outside, and itself is the responsibility of the body evaluates to.