Diffstat (limited to 'stackd')
-rw-r--r--stackd21
1 files changed, 14 insertions, 7 deletions
diff --git a/stackd b/stackd
index ba2d864..8c48039 100644
--- a/stackd
+++ b/stackd
@@ -1,8 +1,15 @@
-push "1abc25hriwm4"
-
-line ← Ξ» { str -> int } (
- 48>πŸ”Ž57<πŸ”Ž
- 57 -
- first 10 * swap last +
- dup call swap call
+"1abc25hriwm4"
+// { str β†’ int }
+line ← Ξ» (
+ '0'>πŸ”Ž'9'<πŸ”Ž
+ '9'-
+ // modifiers are placed in front
+ πŸ˜β¬…βž‘
+ 10Γ—+
)
+
+πŸ’β‰ '\n'🚧
+// run function on all values, pushing to the stack
+⏭️line
+// reduce the stack
+β†˜οΈ+ \ No newline at end of file