-
Notifications
You must be signed in to change notification settings - Fork 1
Tutorial: Magic Dot
The .
in sclin is rather versatile in that its behavior depends on what it
precedes. Here are the rules:
Synonymous with ;
- executes the next line.
1 1+.
2 3*
-> 2 6
Executes the next line, ignoring the rest of the line. Useful for post-line commenting.
1 1+.. this is a comment
2 3*
Takes the top of the stack and pairs it with the command to create an FN
.
1.+
-> (1 +)
[1 2 3] 2.*.map Q
-> [1 2 3] [2 4 6]
Processes the string's escapes.
"asdf\n1234"n>o ."asdf\n1234"n>o
-> asdf\n1234
asdf
1234
Pushes to the stack.
Made with ❤️ by Ben Pang (@molarmanful).