We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9910568 commit 980fd39Copy full SHA for 980fd39
docs/New Operators.md
@@ -36,12 +36,17 @@ Compound operators are syntactic sugar. They'll call the same metamethods as the
36
:::
37
38
## Increment Operator
39
-In addition to the compound operator `+=`, there is an even faster way to increment a value by 1 using the prefixed ++ operator:
+In addition to the compound operator `+=`, there is an even faster way to increment a value by 1 using the ++ operator:
40
```pluto
41
local a = 1
42
+-- Prefix
43
print(++a) --> 2
44
++a
45
print(a) --> 3
46
+-- Postfix
47
+print(a++) --> 3
48
+a++
49
+print(a) --> 5
50
```
51
52
## Comparison Chaining
0 commit comments