Deployed e8a171d to master with MkDocs 1.2.1 and mike 1.0.1

This commit is contained in:
GitHub Action 2021-09-11 14:18:57 +00:00
parent e98108e39a
commit 94517093ca
5 changed files with 20 additions and 10 deletions

View File

@ -1254,6 +1254,7 @@ and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semant
<li><code>Set</code> stdlib</li>
<li><code>Option.force_msg</code></li>
<li>Loading namespaces into the current scope (e.g. <code>using Pair</code>)</li>
<li>Assign patterns to variables (e.g. <code>let x::(t = y::_) = [1, 2, 3, 4]</code> where <code>t == [2, 3, 4]</code>)</li>
</ul>
<h3 id="changed">Changed</h3>
<h3 id="removed">Removed</h3>

File diff suppressed because one or more lines are too long

View File

@ -2,47 +2,47 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2021-09-07</lastmod>
<lastmod>2021-09-11</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

Binary file not shown.

View File

@ -1533,6 +1533,15 @@ their respective arguments. For instance,</p>
get_left(Right(_)) = None
get_left(Both(x, _)) = Some(x)
</code></pre></div></p>
<p>Sophia also supports the assignment of patterns to variables:
<div class="highlight"><pre><span></span><code>function f(x) = switch(x)
h1::(t = h2::_) =&gt; (h1 + h2)::t // same as `h1::h2::k =&gt; (h1 + h2)::h2::k`
_ =&gt; x
function g(p : int * option(int)) : int =
let (a, (o = Some(b))) = p // o is equal to Pair.snd(p)
b
</code></pre></div></p>
<p><em>NOTE: Data types cannot currently be recursive.</em></p>
<h2 id="lists">Lists</h2>
<p>A Sophia list is a dynamically sized, homogenous, immutable, singly