# set.remove_all_copy · Rell standard library · Chromia Docs (concept)

> function remove_ all_ copy(values: collection <-T>): set <T> Returns a new set containing the elements of this set, but without any elements that occur in 

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/set/remove_all_copy/

FUNCTION

# set.remove\_all\_copy

```signature
function remove_all_copy(values: collection<-T>): set<T>
```

Returns a new set containing the elements of this set, but without any elements that occur in the
given collection.

`a.remove_all_copy(b)` is equivalent to `a - b`, where `a` and `b` are sets.

Examples:

* `set([1]).remove_all_copy(set([1]))` returns `set([])`
* `set([1, 2, 3]).remove_all_copy(set([2, 3, 4]))` returns `set([1])`

**Parameters**

* **values** — the other collection

Since 0.14.16

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/set/remove_all_copy.html)Generated API reference, mirrored from the live docs
