🐐 Better arrays

This commit is contained in:
2026-04-01 11:53:13 +02:00
parent 74ad338b63
commit b6de7befcd
4 changed files with 42 additions and 25 deletions

View File

@@ -96,7 +96,13 @@ The base `CENTVRION` syntax does not allow for floats. However, the `FRACTIO` mo
Booleans are denoted with the keywords `VERITAS` for true and `FALSITAS` for false.
### Arrays
Arrays are defined using square brackets (`[]`) and commas (`,`). An array of integers can also be initialized with the `VSQVE` keyword:
Arrays are defined using square brackets (`[]`) and commas (`,`):
```
DESIGNA x VT [I, II, III]
```
An array of integers can also be initialized with the `VSQVE` keyword:
```
DESIGNA x VT [I VSQVE X]
@@ -105,7 +111,7 @@ DESIGNA x VT [I VSQVE X]
Individual elements can be accessed by index using square brackets. Indexing is 1-based, so `I` refers to the first element:
```
DESIGNA x VT [(I, II, III)]
DESIGNA x VT [I, II, III]
DICE(x[I])
> I