ures). Because janet
is a Lisp, functions are values just like numbers or strings - they can be passed around and
created as needed.
</p>
<p>Functions can be defined with the <code class="mendoza-code">defn</code> macro, like so:
</p>
<pre class="mendoza-codeblock"><code data-language="janet">(<span class="mdzsyn-coresym">defn</span> <span class="mdzsyn-symbol">triangle-area</span>
 <span class="mdzsyn-string">"Calculates the area of a triangle."</span>
 [<span class="mdzsyn-symbol">base</span> <span class=