aboutsummaryrefslogtreecommitdiff
path: root/stdlib.rip
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib.rip')
-rw-r--r--stdlib.rip14
1 files changed, 12 insertions, 2 deletions
diff --git a/stdlib.rip b/stdlib.rip
index 56bacc6..7d209b7 100644
--- a/stdlib.rip
+++ b/stdlib.rip
@@ -8,6 +8,16 @@ F<strprint>[
PP
]
+0I[gets last character of string; destructive]
+F<strlast>[
+ 28pM
+]
+
+0I[drops last character of string; destructive]
+F<strinit>[
+ 28pq
+]
+
0I[takes string char; returns string+char]
F<strpush>[
S28pma
@@ -61,8 +71,8 @@ F<varinit>[
0lr 0lr 0lr 0I[guard]
]
-0I[INTERNAL FUNCTION
- hauls variable by name in argument to top of stack; pushes 0 0 if non-existent]
+0I[hauls variable by name in argument to top of stack (result: name value);
+ pushes 0 0 if non-existent]
F<varhaulup>[
00 0I[guard]
lRlR