Previous Up Next

5.42.4  Difference of two sets or of two lists: minus

minus is an infixed operator.
minus takes as argument two sets or two lists.
minus returns the difference set of the arguments.
Input:

set[1,2,3,4] minus set[5,6,3,4]

or:

%{1,2,3,4%} minus %{5,6,3,4%}

Output:

1,2

Input:

[1,2,3,4] minus [5,6,3,4]

Output:

1,2

Previous Up Next