[Haskell-cafe] computing lists of pairs

Daniel Fischer daniel.is.fischer at web.de
Wed Dec 2 10:51:33 EST 2009



Or:

fpairs p s l = sequence [[(a,b) | b <- filter (p a) l] | a <- s]





More information about the Haskell-Cafe mailing list