跳轉到內容

Rebol 程式設計/union

來自華夏公益教科書,自由的教科書
UNION set1 set2 /case /skip size 

建立一個新的集合,它是兩個引數的並集。

UNION 是一個原生值。

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

原始碼

[編輯 | 編輯原始碼]
union: native[
    {Creates a new set that is the union of the two arguments.} 
    set1 [series! bitset!] "first set" 
    set2 [series! bitset!] "second set" 
    /case "Use case-sensitive comparison" 
    /skip "Treat the series as records of fixed size" 
    size [integer!]
]
華夏公益教科書