[Haskell-cafe] A function that makes list of Bool lists from list of Int lists

Maur Toter mauro19838 at gmail.com
Sat Apr 3 09:54:26 EDT 2010


Hey,

I am new with Haskell so I think this will be a pretty dumb question.
I would like to make a function that makes this:

listbool :: [[Int]] -> [[Bool]]

in this way:
listbool [[1,2],[3,4]] == [[True, True],[False, False]]
listbool [[1],[5,5],[5,4],[2]] == [[True],[False, False],[True, True],
[False]]

So always True from the elements of the first list, False from the elements
of the second one, etc...


Can you help me to do that?
Thanks for your help!

Maur Toter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100403/af1a10e2/attachment.html


More information about the Haskell-Cafe mailing list