mirror of
https://github.com/HigherOrderCO/Bend.git
synced 2024-08-14 22:30:30 +03:00
Bump version to 0.2.24 and update docs
This commit is contained in:
parent
24b3219016
commit
ac6f0fbb67
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -62,7 +62,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "bend-lang"
|
||||
version = "0.2.23"
|
||||
version = "0.2.24"
|
||||
dependencies = [
|
||||
"TSPL",
|
||||
"clap",
|
||||
|
@ -2,7 +2,7 @@
|
||||
name = "bend-lang"
|
||||
description = "A high-level, massively parallel programming language"
|
||||
license = "Apache-2.0"
|
||||
version = "0.2.23"
|
||||
version = "0.2.24"
|
||||
edition = "2021"
|
||||
rust-version = "1.74"
|
||||
exclude = ["tests/snapshots/"]
|
||||
|
@ -32,6 +32,7 @@
|
||||
"dref",
|
||||
"dups",
|
||||
"effectful",
|
||||
"elifs",
|
||||
"foldl",
|
||||
"hasher",
|
||||
"hexdigit",
|
||||
@ -120,10 +121,7 @@
|
||||
"walkdir",
|
||||
"wopts"
|
||||
],
|
||||
"files": [
|
||||
"**/*.rs",
|
||||
"**/*.md"
|
||||
],
|
||||
"files": ["**/*.rs", "**/*.md"],
|
||||
"ignoreRegExpList": [
|
||||
"HexValues",
|
||||
"/λ/g",
|
||||
|
@ -193,6 +193,19 @@ A branching statement where `else` is mandatory.
|
||||
|
||||
The condition must return a `u24` number, where 0 will run the `else` branch and any other value will return the first one.
|
||||
|
||||
It is possible to make if-chains using `elif`:
|
||||
|
||||
```python
|
||||
if condition1:
|
||||
return 0
|
||||
elif condition2:
|
||||
return 1
|
||||
elif condition3:
|
||||
return 2
|
||||
else:
|
||||
return 3
|
||||
```
|
||||
|
||||
### Switch
|
||||
|
||||
```python
|
||||
|
Loading…
Reference in New Issue
Block a user