# collection.add · Rell standard library · Chromia Docs (concept)

> function add(value: T): boolean Append an element to the end of this collection. The element is not added if this collection does not allow duplicates and 

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/collection/add/

FUNCTION

# collection.add

```signature
function add(value: T): boolean
```

Append an element to the end of this collection.

The element is not added if this collection does not allow duplicates and the element is already
contained in this collection.

**Parameters**

* **value** — the element to add

**Returns**

`true` if the element was added, `false` otherwise

Since 0.6.0

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