Skip to content

Instantly share code, notes, and snippets.

@hinjolicious
Created June 17, 2026 13:49
Show Gist options
  • Select an option

  • Save hinjolicious/151ec4d7a8f270ea1db26493c2e1cfac to your computer and use it in GitHub Desktop.

Select an option

Save hinjolicious/151ec4d7a8f270ea1db26493c2e1cfac to your computer and use it in GitHub Desktop.
Increment/decrement ++ / -- Incr Decr set-val
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