跳轉到內容

Rebol 程式設計/and

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

返回第一個值與第二個值進行 AND 操作的結果。

AND 是一個操作值。

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

原始碼

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