Use shorthand for range of array
Add test case
Fix behavior

see #10
Merge branch 'issue/10'

closes #10