Skip to content

Complement

Returns elements in the first list but not in any of the other lists.

$ wo 'Complement[{1, 2, 3, 4, 5}, {2, 4}]'
{1, 3, 5}
$ wo 'Complement[{a, b, c, d}, {b, d}]'
{a, c}
$ wo 'Complement[{1, 2, 3}, {1, 2, 3}]'
{}
$ wo 'Complement[{1, 2, 3, 4}, {2}, {4}]'
{1, 3}