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

> function remove_ all_ copy(values: collection <-T>): list <T> Returns a new list whose elements are those found in this list and not in the given collectio

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

FUNCTION

# list.remove\_all\_copy

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

Returns a new list whose elements are those found in this list and not in the given collection.

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

Examples:

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

**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/list/remove_all_copy.html)Generated API reference, mirrored from the live docs
