
I want to return a list, from and list of lists (all integers), where is the erroe in the code? nthList :: [[a]] -> Int -> [a] nthList ([x]:xs) 1 = [x] nthList ([x]:xs) (n+1) = nthListh xs n _________________________________________________________________ Schützen Sie Ihren Posteingang vor unerwünschten E-Mails. http://www.msn.de/antispam/prevention/junkmailfilter Jetzt Hotmail-Junk-Filter aktivieren!

"Pajo Patak"
I want to return a list, from and list of lists (all integers), where is the erroe in the code?
nthList :: [[a]] -> Int -> [a] nthList ([x]:xs) 1 = [x] nthList ([x]:xs) (n+1) = nthListh xs n
Did you try it at all? Prelude> let { nthList ([x]:xs) 1 = [x]; nthList ([x]:xs) (n+1) = nthListh xs n} <interactive>:1: Variable not in scope: `nthListh' -kzm -- If I haven't seen further, it is by standing in the footprints of giants
participants (3)
-
Christian Maeder
-
Ketil Malde
-
Pajo Patak