[String] contains = ["1 0 0","1 0 0","0 1 0"] this [String] is read from a file.
the file shows only: i convert it by using Lines. but i stuck wif the output.
1 0 0
1 0 0
1 0 1
if 1 then False 0 then True
the expected result show be [[False,True,True],[False,True,True],[True,False,True]]
My code
Tn X-10n [EMAIL PROTECTED] writes:
change :: String - Bool
change 1 = True
change 0 = False
conv :: [String] - [Bool]==unable to declare [[Bool]]
Again: a String is a list of ?
-kzm
--
If I haven't seen further, it is by standing in the footprints of giants