रेंडरिंगhi

तक

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

Creates an inclusive range with a Latin keyword.

Syntax: <expression> तक <expression>

Category#

range

Examples#

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

Creates an inclusive range with a Latin keyword.

# =============================================================================
# तक — Creates an inclusive range with a Latin keyword.
# =============================================================================
#
# What this teaches:
#   • Inclusive range — `सीमा <initium> तक <finis>` iterates including both endpoints
#   • Range iteration — combining `दोहराओ` with `तक` for bounded loops
#
# Common mistakes:
#   • confusing तक (inclusive range bound) with जबतक (loop) or अंतराल (range type)
#
# See also: पहले, …
# =============================================================================




# तक — inclusive upper bound for range iteration
#
# दोहराओ सीमा <initium> तक <finis> <var> { … }   -- both endpoints included
#
# GRAMMAR:
#   iterStmt :← 'दोहराओ' 'सीमा' expr 'तक' expr binding block
#
# EXPECTED OUTPUT:
#   0, 1, 2, 3 (inclusive range through finis).

main {
    # i = 0, 1, 2, 3 (includes 3)
    for range 0 until 3 const i {
        print i
    }
}

Expected output:

0
1
2
3