Simplify the GetSlice implementation
Created by: ticki
Entails:
- Let it take a type implementing
RangeArguments
(you can use the range syntax,a..b
,a..
,..b
and..
). - Slightly faster by using branches and comparations
- A bit simpler code
cc @stratact