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

Kim Bruce kim at cs.pomona.edu
Mon Jul 4 13:55:45 PDT 2011


I'd be happy with 1..n, but could live with the other.

By the way, I have jury duty tomorrow.  Hopefully I'll be done before our meeting Wednesday (my time), but I might be stuck on a jury.  I'll let you know.

Kim



On Jul 4, 2011, at 4:21 AM, James Noble wrote:

> 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
> 
> _______________________________________________
> Grace-core mailing list
> Grace-core at cecs.pdx.edu
> https://mailhost.cecs.pdx.edu/mailman/listinfo/grace-core



More information about the Grace-core mailing list