Selects numeric range iteration in an itera loop.
Syntax: itera ab <range> <binding>
Category
iteration
Related
Examples
examples/corpus/ab/ab.fab (canonical · keyword)
Selects numeric range iteration in an itera loop.
# ab — bounded iteration step
#
# GRAMMAR:
# iteraStmt :← 'itera' 'ab' expr '‥' expr step? 'fixum' ident block
#
# EXPECTED OUTPUT:
# Scalar stdout smoke (see body).
#
incipit {
itera ab 0‥10 per 2 fixum i {
nota i
}
}Expected output:
0
2
4
6
8