summaryrefslogtreecommitdiff
path: root/reference.md
diff options
context:
space:
mode:
authortomsmeding <hallo@tomsmeding.nl>2015-09-10 21:42:12 +0200
committertomsmeding <hallo@tomsmeding.nl>2015-09-10 21:42:12 +0200
commit78a145a5bb77b73f5fbefb0efa2d188926eb55ef (patch)
tree345a7e59216d2a61a3668b9eea412f1018b95686 /reference.md
parent0a2c7d3ccb5621150d827643bc2c196f7f8db664 (diff)
Add arrset
Diffstat (limited to 'reference.md')
-rw-r--r--reference.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/reference.md b/reference.md
index 1938d5f..13c7b2f 100644
--- a/reference.md
+++ b/reference.md
@@ -44,6 +44,7 @@ s `ord` | Gets the ascii value of the first character in string `s` (replacing `
`mkarray` | Creates an empty array on the stack
[v...] n `mkarrayp` | Takes `n` elements off the stack and creates a new array with these `n` elements
a i `arridx` | Gets index `i` from array `a`, leaving `a` on the stack
+a v i `arrset` | Sets index `i` in array `a` to value `v`, leaving `a` on the stack
a `arrlen` | Gets the length of array `a`, leaving `a` on the stack
a v `arrpush` | Pushes the value `v` on the end of array `a` (leaving `a` on the stack, obviously)
a v `arrpushf` | Pushes the value `v` at the front of array `a` (leaving `a` on the stack, obviously)