रेंडरिंगhi

जनक

Translation status: हिन्दी reader-locale proof. Term names and code fences follow the hi pack; supporting prose may still be English.

Callable posture for synchronous stream (generator) functions.

Aliases: generator

Syntax: फलन name(…) जनक → T

Category#

async

Examples#

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

Callable posture for synchronous stream (generator) functions.

# =============================================================================
# जनक — Synchronous stream callable posture
# =============================================================================
#
# What this teaches:
#   • Preferred stream posture: `जनक → T` yields `T` items.
#   • Yield with statement-initial `आगेबढ़ो value` inside the body.
#
# Common mistakes:
#   • Using `@ संकेतक` only when teaching preferred morphology — prefer `जनक`.
#
# See also: संकेतक, आगेबढ़ो, async_जनक
# =============================================================================

# GRAMMAR:
#   callablePosture :← 'जनक'
#   yieldStmt :← 'आगेबढ़ो' expr
#
# EXPECTED OUTPUT:
#   [1, 2]

फलन stream() जनक → संख्या {
    आगेबढ़ो 1
    आगेबढ़ो 2
}

आरंभ {
    दिखाओ stream()
}

Expected output:

[1, 2]