s"><pre><code class="qm-code-font"><span class="hljs-comment">// create an empty list</span>
<span class="hljs-keyword">var</span> list = <span class="hljs-keyword">new</span> hx.List;

list.add(<span class="hljs-number">2</span>);
list.add(<span class="hljs-number">4</span>);
list.add(<span class="hljs-number">6</span>);

<span class="hljs-comment">// will log 3</span>
<span class="hljs-built_in">console</span>.log(list.size);

<span class="hljs-comment">// remove an item from the list by position</span>
l