REBOL Programming/intersect

      USAGE:

      INTERSECT ser1 ser2 /case /skip size 
      

      DESCRIPTION:

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

      INTERSECT is a native value.

      ARGUMENTS:

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

      REFINEMENTS:

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

      SOURCE CODE

      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!]
      ]
      
      Last modified on 31 October 2012, at 11:58