跳轉到內容

Rebol 程式設計/xor~

來自華夏公益教科書,開放的書,開放的世界
XOR~ value1 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!]
]
華夏公益教科書