Jump to content

Rebol Programming/intersect

From Wikibooks, open books for an open world

USAGE:

[edit | edit source]
INTERSECT ser1 ser2 /case /skip size 

DESCRIPTION:

[edit | edit source]

Create a new value that is the intersection of the two arguments.

INTERSECT is a native value.

ARGUMENTS:

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

REFINEMENTS:

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

SOURCE CODE

[edit | edit source]
intersect: native[
    {Create a new value that is the intersection of the two arguments.} 
    ser1 [series! bitset!] "first set" 
    ser2 [series! bitset!] "second set" 
    /case "Uses case-sensitive comparison." 
    /skip "Treat the series as records of fixed size" 
    size [integer!]
]