      

<p>Janet is a functional language - that means that one of the basic building
blocks of your program will be defining functions (the other is using data
structures). Because Janet is a Lisp-like language, 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</s