[Haskell-cafe] Re: computing lists of pairs
Christian.Maeder at dfki.de
Wed Dec 2 11:10:02 EST 2009
Thanks a lot, works as expected and is super short!
Daniel Fischer schrieb:
> fpairs p s l = sequence [[(a,b) | b <- filter (p a) l] | a <- s]
More information about the Haskell-Cafe