I'm not able to find an effective way to pick out all permutations of 4 elements from a list of 9 elements in Haskell. The python-way to do the same thing:
itertools.permutations(range(9+1),4)
An not so effective way to do it in Haskell:
nub . (map (take 4)) . permutations $ [1..9]
I would like to find something like:
permutations 4 [1..9]