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>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 |>
|
<li>The pipe operator |>
|
||||||
<code>[1, 2, 3] |> List.first |> Option.is_some // Option.is_some(List.first([1, 2, 3]))</code></li>
|
<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>
|
</ul>
|
||||||
<h3 id="changed">Changed</h3>
|
<h3 id="changed">Changed</h3>
|
||||||
<ul>
|
<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">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2022-05-25</lastmod>
|
<lastmod>2022-06-03</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
Binary file not shown.
@ -748,6 +748,7 @@ switch(f(x))
|
|||||||
<h2 id="expressions">Expressions</h2>
|
<h2 id="expressions">Expressions</h2>
|
||||||
<p>```c
|
<p>```c
|
||||||
Expr ::= '(' LamArgs ')' '=>' Block(Stmt) // Anonymous function (x) => x + 1
|
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
|
| 'if' '(' Expr ')' Expr 'else' Expr // If expression if(x < y) y else x
|
||||||
| Expr ':' Type // Type annotation 5 : int
|
| Expr ':' Type // Type annotation 5 : int
|
||||||
| Expr BinOp Expr // Binary operator x + y
|
| Expr BinOp Expr // Binary operator x + y
|
||||||
|
Loading…
x
Reference in New Issue
Block a user