
3 Apr
2010
3 Apr
'10
9:54 a.m.
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