Intersect

angerangel edited this page Jan 4, 2013 · 1 revision
Clone this wiki locally

USAGE

   INTERSECT set1 set2 /case /skip size

DESCRIPTION

Returns the intersection of two data sets.

INTERSECT is a native value.

ARGUMENTS

  • set1 -- first set (block! string! binary! bitset! typeset!)
  • set2 -- second set (block! string! binary! bitset! typeset!)

REFINEMENTS

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

#SOURCE

intersect: make native! [  [
    "Returns the intersection of two data sets."
    set1 [block! string! binary! bitset! typeset!] "first set"
    set2 [block! string! binary! bitset! typeset!] "second set"
    /case "Uses case-sensitive comparison"
    /skip "Treat the series as records of fixed size"
    size [integer!]
] ]