Apparently there is no boolean version of the bitwise exclusive-or operator (^^^)
... what to do?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
This is provided by the not-equal operator <>
.
回答2:
let inline xor a b = (a || b) && not (a && b)