[Haskell-cafe] A function that makes list of Bool lists from list
of Int lists
mauro19838 at gmail.com
Sat Apr 3 09:54:26 EDT 2010
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 [,[5,5],[5,4],] == [[True],[False, False],[True, True],
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!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe