
27 Jun
2011
27 Jun
'11
7:50 a.m.
I'm sorry, I'm not entirely sure what you're trying to do. Are you trying to find the first number _in_ a list? That could be done with for example pattern matching: head (x:_) = x head _ = error "Empty list" The guards in list comprehension requires booleans, you gave it a function that takes a list and returns an item of the same time. last :: [a] -> a -- Mats Rauhala MasseR