[Haskell-cafe] Re: computing lists of pairs

Christian Maeder Christian.Maeder at dfki.de
Wed Dec 2 11:10:02 EST 2009

Thanks a lot, works as expected and is super short!

Cheers Christian

Daniel Fischer schrieb:
> Or:
> fpairs p s l = sequence [[(a,b) | b <- filter (p a) l] | a <- s]

More information about the Haskell-Cafe mailing list