lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > That is, a border points to any position in a table where a non-nil value
> > is followed by a nil value (or to 0, when position 1 is empty).
> 
> This is a little bit hard to understand. Is the border meant to point
> to the last element, or to the first nil? The language might need some
> refinement. I'll think about it for a while to see what I can come up
> with.

You are right. New try:

   That is, a border is the (positive integer) index of any non-nil
   value in a table that is followed by a nil value (or 0, when
   index 1 is empty.)

-- Roberto