Specifying a Separator for Reference Ranges

Top  Previous  Next

Reference ranges are normally created with your computer's standard separator (either a comma or a semicolon). Alternatively they can be specified with a separator of your choosing.

 

For example, if you define the follow parameter.

 

$a=range(4,1000,3)

 

$a[3,10] will produce 10, 13, 16, 19, 22, 25, 28, 31

 

You might like to separate the elements with a + sign to show a series. This can be defined by

 

$a[3,10,+] or $a[3,10,"+"]   (the quotation marks are optional)

 

Both of these expressions will result in the following

 

10+13+16+19+22+25+28+31