[Haskell-beginners] Re: fold over elem?

apfelmus apfelmus at quantentunnel.de
Fri Sep 19 13:42:20 EDT 2008

Logesh Pillay wrote:
> I want to check if all the numbers in a list A are elements of a bigger
> unordered list B.

  bs `contains` as = all (`elem` bs) as

> Is there some way to fold  /A into elem /B?

I don't quite understand what you want to do, can you elaborate?


More information about the Beginners mailing list