yes, that's what I tried to achieve: all out-of-bounds elements get mapped in the first/last element of the range.