跳轉到內容

Rebol 程式設計/xor

來自華夏公益教科書
value1 XOR value2 

返回第一個值與第二個值進行異或運算的結果。

XOR 是一個操作值。

  • value1 -- (型別:邏輯值、數字、字元、元組、二進位制、字串、影像)
  • value2 -- (型別:邏輯值、數字、字元、元組、二進位制、字串、影像)

原始碼

[編輯 | 編輯原始碼]
xor: native[
    {Returns the first value exclusive ORed with the second.} 
    value1 [logic! number! char! tuple! binary! string! image!] 
    value2 [logic! number! char! tuple! binary! string! image!]
]
華夏公益教科書