FUNCTION

set.add

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

© 2026 Chromia