Skip to content

Commit a08c4b0

Browse files
authored
Merge pull request #249 from erichaney/master
Add example for ++
2 parents ce78392 + e63d685 commit a08c4b0

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)