e-desc">Once for Nim.
<p><strong class="examples_text">Example:</strong></p>
<pre class="listing"><span class="Keyword">import</span> <span class="Identifier">sync</span><span class="Operator">/</span><span class="Identifier">once</span>

<span class="Keyword">type</span>
  <span class="Identifier">Singleton</span> <span class="Operator">=</span> <span class="Keyword">object</span>
    <span class="Identifier">data</span><span class="Punctuation">:</span> <span class="Identifier">int</span>

<span class="Ke