⊕
Translation status: हिन्दी reader-locale proof. Code fences render through the hi pipeline; prose is canonical Latin.
Postfix increment statement for a mutable numerus place.
Aliases: postfix increment, increment statement
Syntax: <place> ⊕
Category#
mutation
Related#
Examples#
radix/corpus/incrementa/incrementa.fab (canonical · operator)#
Postfix increment statement for a mutable numerus place.
# =============================================================================
# ⊕ — Postfix increment statement for a mutable numerus place
# =============================================================================
#
# What this teaches:
# • Postfix increment statement for a mutable numerus place.
# • Related keywords: ⊖, varia, ←, numerus
#
# Common mistakes:
# • Using `⊕` / `⊖` inside an expression — postfix increment/decrement are statements only and cannot appear inside larger expressions.
#
# See also: ⊖, varia, ←, numerus
# =============================================================================
# incrementa — postfix increment and decrement statements
#
# <place> ⊕ -- add 1 (statement only, no value)
# <place> ⊖ -- subtract 1
#
# Postfix forms are statements, not expressions. They cannot appear inside
# larger expressions. Operand must be a mutable numerus place.
main {
var int count ← 0
count ⊕
# 1
print count
count ⊖
# 0
print count
var int exclusivus ← 0
for range 0‥3 const _ {
exclusivus ⊕
}
# 3
print exclusivus
}Expected output:
1
0
3