我找到了用Haskell写的逻辑门异或的代码,但我不知道这个“ (/=)”是什么意思!
(/=)
xor :: Bool -> Bool -> Bool xor = (/=)
haskell xor ghci
ghci ×1
haskell ×1
xor ×1