🐐 PER deconstructing
This commit is contained in:
13
README.md
13
README.md
@@ -253,6 +253,19 @@ condition. Exit the loop with `ERVMPE` (or `REDI` from inside a function).
|
||||
> V
|
||||
```
|
||||
|
||||
Variables can be unpacked in `PER` loops, similar to `DESIGNA` destructuring:
|
||||
|
||||
```
|
||||
PER a, b IN [[I, II], [III, IV]] FAC {
|
||||
DIC(a + b)
|
||||
}
|
||||
```
|
||||
|
||||
```
|
||||
> III
|
||||
> VII
|
||||
```
|
||||
|
||||
## Error handling
|
||||
|
||||
Errors can be caught using `TEMPTA` (temptare = to try) and `CAPE` (capere = to catch). The `CAPE` block binds the error message to a variable as a string.
|
||||
|
||||
Reference in New Issue
Block a user