
list.delete(<span class="hljs-number">1</span>);

<span class="hljs-comment">// will log [2, 6]</span>
<span class="hljs-built_in">console</span>.log(list.values());

<span class="hljs-comment">// remove the an item from the list by value</span>
list.remove(<span class="hljs-number">6</span>);

<span class="hljs-comment">// will log [2]</span>
<span class="hljs-built_in">console</span>.log(list.values());

<span class="hljs-comment">// removes everything from the list</span>
list.clear();

<span class="hlj