itamargiv / permutations / Permutations

ofList : List a -> List (List a)

Return a list of all possible permutations of a list.

fromList [0, 1] == [[0, 1], [1, 0]]