跳轉到內容

Rebol 程式設計/or~

來自華夏公益教科書,開放的書籍,開放的世界
OR~ value1 value2 

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

OR~ 是一個動作值。

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

原始碼

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