
12 Jul
2011
12 Jul
'11
5:02 a.m.
hello Everyone thanks for the help. I'm now trying to make this work on a empty list. But my question is. When the definition is : [a] -> [a] [a] Is it correct that I don't can use. length xs = 0 | [] Roelof ----------------------------------------
Subject: Re: [Haskell-beginners] function defenition. Do I understand it right? From: d@vidplace.com Date: Mon, 11 Jul 2011 18:56:42 -0400 CC: beginners@haskell.org To: rwobben@hotmail.com
On Jul 11, 2011, at 5:13 PM, Roelof Wobben wrote:
What I try to achieve is this:
[1,2,3,4] will be [1,2] [3,4]
[1,2,3,4,5] will be [1,2,3] [3,4,5]
So, I think what you want is this http://codepad.org/kjpbtLfR
Is that correct?