Iterate over all pair combinations without repetition in Haskell June 1, 2023 by Tarik What about: [ (x,y) | (x:rest) <- tails xs , y <- rest ]