Skip to content

Commit e63d685

Browse files
authored
Add example for ++
1 parent ce78392 commit e63d685

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/++.janet

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(var a 0) # -> 0
2+
(set a (+ a 1)) # -> 1
3+
(++ a) # -> 2 (same effect as above)

0 commit comments

Comments
 (0)