Haskell lists difference
Posted
by
user559354
on Stack Overflow
See other posts from Stack Overflow
or by user559354
Published on 2011-01-01T09:38:35Z
Indexed on
2011/01/01
9:54 UTC
Read the original article
Hit count: 153
haskell
I'm trying make a lists difference. Found directly prelude operator \\\\
that makes lists difference. But errors Not in scope: '\\\\'
occurs. Here is my simple from command line interpreter:
Prelude> ([1,2,3] ++ [5,6]) -- works like expected
[1,2,3,4,5,6]
prelude> ([1,2,3] \\\\ [1,2]) -- erros occurs
<interactive>:1:11: Not in scope: "\\\\"
Thanks for explanation where I make a mistake.
© Stack Overflow or respective owner