Renderingen-US

usque

Translation status: English reader-locale proof. Code fences render through the en pipeline; prose is canonical Latin.

Creates an inclusive range with a Latin keyword.

Syntax: <expression> usque <expression>

Category#

range

Examples#

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

Creates an inclusive range with a Latin keyword.

# =============================================================================
# usque — Creates an inclusive range with a Latin keyword.
# =============================================================================
#
# What this teaches:
#   • Inclusive range — `ab <initium> usque <finis>` iterates including both endpoints
#   • Range iteration — combining `itera` with `usque` for bounded loops
#
# Common mistakes:
#   • confusing usque (inclusive range bound) with dum (loop) or intervallum (range type)
#
# See also: ante, …
# =============================================================================




# usque — inclusive upper bound for range iteration
#
# itera ab <initium> usque <finis> <var> { … }   -- both endpoints included
#
# GRAMMAR:
#   iterStmt :← 'itera' 'ab' expr 'usque' 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