intersection

return the intersection of given sets


Parameters

intersection setA :literal :block
             setB :block

Returns

  • :block
  • or  :nothing

Examples

copy
print intersection [1 2 3 4] [3 4 5 6] ; 3 4

copy
a: [1 2 3 4] b: [3 4 5 6] intersection 'a b ; a: [3 4]

Related