difference

return the difference of given sets


Parameters

difference setA :literal :block
           setB :block

Attributes

symmetricget the symmetric difference

Returns

  • :block
  • or  :nothing

Examples

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

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

copy
print difference.symmetric [1 2 3 4] [3 4 5 6] ; 1 2 5 6

Related