slang-users mailing list

[2012 Date Index] [2012 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] Range array docs


The docs say:

--------------------------------8<--------------------------
The syntax for the most general form of range array is given by
      [first-value : last-value : increment]

--------------------------------8<--------------------------

The examples show e.g.:

[0:1:#5]        ==> [0.0, 0.25, 0.50, 0.75, 1.0]
[0:-1:#3]       ==> [0.0, -0.5, -1.0]

The increment must be preceded by a # sign, I take it. I was looking
for confirmation of this point, but couldn't find any mention of
using the # prefix.

Perhaps the syntax explanation above, could be adjusted to reflect
the need for the # prefix??  Just a suggestion ...

--
Duke




[2012 date index] [2012 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]