
31 Aug
2012
31 Aug
'12
2:59 p.m.
On Fri, Aug 31, 2012 at 04:15:38PM +0200, Ertugrul Söylemez wrote:
Brent Yorgey
wrote: *intercalate :: (Eq t) => [t] -> [t] -> [t]* *intercalate (x:xs) (y:ys)* * | xt == [] = []* * | yt == [] = []* * | otherwise = x : y : intercalate xs ys* * where xt=(x:xs)* * yt=(y:ys)*
I should also point out that the tests xt == [] and yt == [] will never be true! That is because xt is defined to be (x:xs) and yt is (y:ys).
That's actually not true. See his 'where' clause at the bottom.
That's exactly what I was looking at. Can you clarify what you mean? Which part of what I said is not true? -Brent