Tinderbox v9 Icon

... (range)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Operator   [other Operator type actions]

 Item   [operators of similar scope]

 Mathematical   [other Mathematical operators]

 9.1.0

 


...

The range operator constructs a list of numbers from a specified starting point to a specified end point. Note: the range operator is written as 3 dots and not an ellipsis character. For exam[ple

1…3 → 1;2;3

3…1 → 3;2;1

The range operator can be useful for performing a task a specific number of times.

 1...10.each(x){var path="/container/item "+x; create(path);} 
The range operator binds more tightly than arithmetic operators.
1...3 * 2(1..3) *22;4;6