渲染zh-Hant

fiunt

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

Callable posture for synchronous stream (generator) functions.

Aliases: generator

Syntax: functio name(…) fiunt → T

Category#

async

Examples#

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

Callable posture for synchronous stream (generator) functions.

# =============================================================================
# fiunt — Synchronous stream callable posture
# =============================================================================
#
# What this teaches:
#   • Preferred stream posture: `fiunt → T` yields `T` items.
#   • Yield with statement-initial `cede value` inside the body.
#
# Common mistakes:
#   • Using `@ cursor` only when teaching preferred morphology — prefer `fiunt`.
#
# See also: cursor, cede, fient
# =============================================================================

# GRAMMAR:
#   callablePosture :← 'fiunt'
#   yieldStmt :← 'cede' expr
#
# EXPECTED OUTPUT:
#   [1, 2]

functio stream() fiunt → numerus { cede 1 cede 2 }

incipit { nota stream() }