Created
June 17, 2026 13:49
-
-
Save hinjolicious/151ec4d7a8f270ea1db26493c2e1cfac to your computer and use it in GitHub Desktop.
Increment/decrement ++ / -- Incr Decr set-val
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Red [] | |
| ; pass by reference | |
| incr: func ['x][set x (get x) + 1] | |
| decr: func ['x][set x (get x) - 1] | |
| increment: :incr | |
| decrement: :decr | |
| ++: :incr | |
| --: :decr | |
| set-val: function ['var val][set var :val] | |
| comment { | |
| i: 0 | |
| print incr i | |
| print decr i | |
| print ++ i | |
| print -- i | |
| print set-val i 100 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment