渲染zh-Hant

variandum

Translation status: 繁體中文 reader-locale proof. Code fences render through the zh-Hant pipeline; prose is canonical Latin.

Awaits a promissum and binds a mutable name.

Aliases: await_var

Syntax: variandum T name ← future

Category#

async

Examples#

radix/corpus/variandum/variandum.fab (canonical · keyword)#

Awaits a promissum and binds a mutable name.

# =============================================================================
# variandum — Await-bind mutable
# =============================================================================
#
# What this teaches:
#   • Await a `promissum<T>` and bind the success value mutably.
#
# See also: figendum, tacebit, fiet, promissum
# =============================================================================

functio responde() fiet → numerus { redde 3 }

incipiet { variandum numerus responsum ← responde() responsum ← responsum + 1 nota responsum }