Renderingla

Half-open and inclusive range endpoints in itera ab and intra.

Syntax: <expression> ‥ <expression> | <expression> … <expression>

Category

range

Related

Examples

examples/corpus/operatores/range-glyphs.fab (canonical · operator-group)

Half-open and inclusive range endpoints in itera ab and intra.

# operatores/range-glyphs — ‥ (exclusive) and … (inclusive)
#
# GRAMMAR:
#   rangeExpr :← expr ('‥' | '…') expr
#
# EXPECTED OUTPUT:
#   0, 1, 2, 3, 4, 0, 1, 2, 3, 4, 5
#
# BACKEND:
#   Cross-ref itera/intervallum.fab and intra/intra.fab.

incipit {
    varia numerus exclusivus ← 0
    itera ab 0‥5 fixum _ {
        exclusivus ⊕
    }
    # 5 iterations
    nota exclusivus

    varia numerus inclusivus ← 0
    itera ab 0…5 fixum _ {
        inclusivus ⊕
    }
    # 6 iterations
    nota inclusivus
}

Expected output:

5
6