🐐 Better arrays
This commit is contained in:
10
README.md
10
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user