Jump to content

Rebol Programming/union

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
UNION set1 set2 /case /skip size 

DESCRIPTION:

[edit | edit source]

Creates a new set that is the union of the two arguments.

UNION is a native value.

ARGUMENTS

[edit | edit source]
  • set1 -- first set (Type: series bitset)
  • set2 -- second set (Type: series bitset)

REFINEMENTS

[edit | edit source]
  • /case -- Use case-sensitive comparison
  • /skip -- Treat the series as records of fixed size
    • size -- (Type: integer)

SOURCE CODE

[edit | edit source]
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!]
]