Update Examples
parent
fbb4a91b52
commit
30948d0d4a
@ -1066,6 +1066,7 @@ fn main
|
|||||||
```
|
```
|
||||||
</td></tr></table>
|
</td></tr></table>
|
||||||
Another consideration is whether we want to have a shorthand for non-closure anonymous inline functions (i.e. ones that are enforced not to capture any identifiers). If so, the simplest mechanism might just be to use another arrow, i.e. Husht could look like:
|
Another consideration is whether we want to have a shorthand for non-closure anonymous inline functions (i.e. ones that are enforced not to capture any identifiers). If so, the simplest mechanism might just be to use another arrow, i.e. Husht could look like:
|
||||||
|
|
||||||
```
|
```
|
||||||
fn main
|
fn main
|
||||||
let anon_func = x --> x*x
|
let anon_func = x --> x*x
|
||||||
|
Loading…
Reference in New Issue
Block a user