Trying to figure out how to generate slice permutations of specific length. Say in Python I can do:
>>> import