[Grace-core] 0..(size-1) or 1..size

James Noble kjx at ecs.vuw.ac.nz
Mon Jul 4 04:21:13 PDT 2011


So I needed to do this:

const l := ["ab","ac","ad","ae","af"] 

for (0..(l.size - 1)) do { i ->
   print(i)
   print (l.at(i))
 } 

minigrace collections are indexed 0..(size-1)

is this what we want? Or should it be 1..size?

J



More information about the Grace-core mailing list