MAINT: an easier way to make ranges from slices
Merge pull request #3123 from perimosocordiae/patch-2

MAINT: sparse: an easier way to make ranges from slices