summaryrefslogtreecommitdiff
path: root/reference.md
diff options
context:
space:
mode:
Diffstat (limited to 'reference.md')
-rw-r--r--reference.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/reference.md b/reference.md
index 13c7b2f..807664a 100644
--- a/reference.md
+++ b/reference.md
@@ -35,7 +35,8 @@ n `get` | Get value of variable with name `n`
n `swapoutvar` | Get value of variable with name `n`, *moving* onto the stack instead of copying
`enterscope` | Enter a function variable scope
`leavescope` | Leave a function variable scope
-n `roll` | Roll the stack by `n`; positive n: roll OFF top to bottom; negative n: roll off bottom ONTO top
+t `roll` | Roll the stack `t` times; positive n: roll off bottom ONTO top (clockwise); negative n: roll OFF top to bottom (anti-clockwise)
+n t `rotate` | Rotate the top `n` items of the stack `t` times; positive n: rotate off bottom ONTO top (clockwise); negative n: rotate OFF top to bottom (anti-clockwise)
s i `stridx` | Gets the character in string `s` index `i`, leaving `s` on the stack
s `strlen` | Gets the length of string `s`, leaving `s` on the stack
s a b `substr` | Gets the substring in `s` from index `a` to `b`, `b` exclusive; leaving `s` on the stack