REBOL Programming/intersect

From Wikibooks, open books for an open world
< REBOL Programming
Jump to: navigation, search

USAGE:[edit]

INTERSECT ser1 ser2 /case /skip size 

DESCRIPTION:[edit]

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

INTERSECT is a native value.

ARGUMENTS:[edit]

  • ser1 -- first set (Type: series bitset)
  • ser2 -- second set (Type: series bitset)

REFINEMENTS:[edit]

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

SOURCE CODE[edit]

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!]
]