## Finding even permutations using Haskell

I tried to figure out how to find the even permutations out of the set {permutations [1..n]}. I have asked this question before on a different forum, and got an answer that worked namely the code was:
Import Data.List
-- number of inversions in a p...

more
»