Deployed b376707 to master with MkDocs 1.2.4 and mike 1.0.1

This commit is contained in:
GitHub Action 2022-06-03 09:12:51 +00:00
parent 87e2c62b9f
commit bed468b762
5 changed files with 14 additions and 10 deletions

View File

@ -1308,6 +1308,9 @@ and this project adheres to <a href="https://semver.org/spec/v2.0.0.html">Semant
<li>Compiler warnings for the follwing: shadowing, negative spends, division by zero, unused functions, unused includes, unused stateful annotations, unused variables, unused parameters, unused user-defined type, dead return value.</li>
<li>The pipe operator |&gt;
<code>[1, 2, 3] |&gt; List.first |&gt; Option.is_some // Option.is_some(List.first([1, 2, 3]))</code></li>
<li>Allow binary operators to be used as lambdas
<code>function sum(l : list(int)) : int = foldl((+), 0, l)
function logical_and(x, y) = (&amp;&amp;)(x, y)</code></li>
</ul>
<h3 id="changed">Changed</h3>
<ul>

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>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>None</loc>
<lastmod>2022-05-25</lastmod>
<lastmod>2022-06-03</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

Binary file not shown.

View File

@ -748,6 +748,7 @@ switch(f(x))
<h2 id="expressions">Expressions</h2>
<p>```c
Expr ::= '(' LamArgs ')' '=&gt;' Block(Stmt) // Anonymous function (x) =&gt; x + 1
| '(' BinOp ')' // Operator lambda (+)
| 'if' '(' Expr ')' Expr 'else' Expr // If expression if(x &lt; y) y else x
| Expr ':' Type // Type annotation 5 : int
| Expr BinOp Expr // Binary operator x + y