跳轉到內容

Rebol 程式設計/exclude

來自華夏公益教科書,開放的書籍,為開放的世界
EXCLUDE set1 set2 /case /skip size 

返回第一個集合減去第二個集合的結果。

EXCLUDE 是一個原生值。

  • set1 -- 第一個資料集 (型別: series bitset)
  • set2 -- 第二個資料集 (型別: series bitset)
  • /case -- 使用區分大小寫的比較。
  • /skip -- 將 series 視為固定大小的記錄
    • size -- (型別: 整數)

原始碼

[編輯 | 編輯原始碼]
exclude: native[
    "Return the first set less the second set." 
    set1 [series! bitset!] "First data set" 
    set2 [series! bitset!] "Second data set" 
    /case "Uses case-sensitive comparison." 
    /skip "Treat the series as records of fixed size" 
    size [integer!]
]
華夏公益教科書