np

for (statement)

Description

for statements are used to loop over a sequence.

Numeric for

The simplest numeric for counts a sequence in order:

new c = 1
for i = 1, 1000 
  c += i
print( c )

An optional third parameter can indicate the step size:

new fls = (:)

for a = 1,10,2
  fls += a
  
print(fls)
(: 1 3 5 7 9 )