العرضar

حتى

Translation status: العربية reader-locale proof. Term names and code fences follow the ar 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