
12 Jul
2011
12 Jul
'11
3:21 p.m.
_ isn't a value: it's a wildcard character for pattern matching.
Also, if x = [1,2,3], [0,x] is the wrong way to make a list. The right
way is (0:x) (":" is "cons")
What resource are you learning from?
On 7/12/11, Roelof Wobben
Hello,
As a exercise I need to rewrite the tail function into a safetail function by using conditions.
So I made this : http://codepad.org/bKcCUdqy
But as you can see there is a error message.
Can anyone explain me how to solve this ?
Roelof
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners