Skip to content

PreDecrement

PreDecrement(x)
--x

decrements x by 1, returning the new value of x.

Examples

--a is equivalent to a = a - 1:

>> a = 2
>> --a
1
>> a
1

Implementation status

  • ✅ - full supported

Github