zsyn-comment">#-&gt; 1</span>
(<span class="mdzsyn-symbol">st</span> <span class="mdzsyn-keyword">:b</span>) <span class="mdzsyn-comment">#-&gt; 2</span></code></pre><h2>Converting a table to a struct
</h2>
<p>A table can be converted to a struct via the <code class="mendoza-code">table/to-struct</code> function.
This is useful for efficiently creating a struct by first incrementally putting
key-value pairs in a table.
</p>
<pre class="mendoza-codeblock"><code data-language="janet">(<span class="mdzsyn-core