अपरिवर्तित
Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.
Marks a function as non-mutating.
Syntax: फलन <name>(...) अपरिवर्तित → <type>
Category#
function
Related#
Examples#
radix/corpus/immutata/immutata.fab (canonical · keyword)#
Marks a function as non-mutating.
# =============================================================================
# अपरिवर्तित — Marks a function as non-mutating
# =============================================================================
#
# What this teaches:
# • Marks a function as non-mutating.
# • Related keywords: फेंकता
#
# Common mistakes:
# • Mutating state inside an `अपरिवर्तित` function — `अपरिवर्तित` is a non-mutation contract; modifying `में` parameters or external state breaks the contract.
#
# See also: फेंकता
# =============================================================================
# अपरिवर्तित — immutability contract on फलन
#
# GRAMMAR:
# funcModifier :← 'अपरिवर्तित'
#
# EXPECTED OUTPUT:
# No आरंभ — declaration or test-runner surface only.
#
# BACKEND:
# declaration-only function modifier (whitelist: अपरिवर्तित/immutata.fab).
#
fn inspecta() readonly → int {
return 0
}