Deployed b376707 to master with MkDocs 1.2.4 and mike 1.0.1
This commit is contained in:
parent
87e2c62b9f
commit
bed468b762
@ -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 |>
|
||||
<code>[1, 2, 3] |> List.first |> 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) = (&&)(x, y)</code></li>
|
||||
</ul>
|
||||
<h3 id="changed">Changed</h3>
|
||||
<ul>
|
||||
|
File diff suppressed because one or more lines are too long
@ -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.
@ -748,6 +748,7 @@ switch(f(x))
|
||||
<h2 id="expressions">Expressions</h2>
|
||||
<p>```c
|
||||
Expr ::= '(' LamArgs ')' '=>' Block(Stmt) // Anonymous function (x) => x + 1
|
||||
| '(' BinOp ')' // Operator lambda (+)
|
||||
| 'if' '(' Expr ')' Expr 'else' Expr // If expression if(x < y) y else x
|
||||
| Expr ':' Type // Type annotation 5 : int
|
||||
| Expr BinOp Expr // Binary operator x + y
|
||||
|
Loading…
x
Reference in New Issue
Block a user