j
k
j a
j l
2009/7/15 minh thu :
2009/7/15 Magicloud Magiclouds : ...Hi, I do not notice this before. "fun ([0, 1] ++ xs) = .." in my code could not be compiled, parse error. ++ is a function; you can't pattern-match on that.
2009/7/15 Magicloud Magiclouds :
Hi, I do not notice this before. "fun ([0, 1] ++ xs) = .." in my code could not be compiled, parse error.
++ is a function; you can't pattern-match on that.
But here you can match against (0:1:xs).
Back to the thread
Back to the list