server</code> can combine steps 1, 2 and 3 into one call.
However, the long form way is still very short and is no less expressive.
</p>
<pre class="mendoza-codeblock"><code data-language="janet"><span class="mdzsyn-comment"># Create a server on localhost and listen on port 8000.</span>
(<span class="mdzsyn-coresym">def</span> <span class="mdzsyn-symbol">my-server</span> (<span class="mdzsyn-coresym">net/listen</span> <span class="mdzsyn-string">"127.0.0.1"</span> <span class="mdzsyn-string">"8000"</span>))