[Haskell-beginners] How to select items from one list depending on another

Ozgur Akgun ozgurakgun at gmail.com
Wed Nov 10 11:02:08 EST 2010


If only ParallelListComp<http://hackage.haskell.org/trac/haskell-prime/wiki/ParallelListComp>supported
filters.

list3 = [ b | a <- list1
            | b <- list2
            , a /= 0
        ]

But it doesn't, so this is an entirely unnecessary post :)

Best,

-- 
Ozgur Akgun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/beginners/attachments/20101110/a6e00b8e/attachment.html


More information about the Beginners mailing list