recursion

2003-08-21 Thread Tn X-10n
hi guys, may i know how to use recursive in a function. for example i have a function lets call it old which accept [[Bool]]-[(Int),(Int)]-(Int,Int) and return [(Int),(Int)] and now i have another function lets say its called new, which calls the previous functionand new will recursively check

[String]-[[Bool]] 2

2003-08-14 Thread Tn X-10n
[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

[String]-[[Bool]]

2003-08-14 Thread Tn X-10n
a string is a list of Char which can be '1', '0', '/n'and spaces ' '. ["1 0 1 0 0 1 /n"]Get free gift vouchers every week with MSN Premium Vouchers ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe