Previous Up Next

2.36.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