lua-users home
lua-l archive

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

On Thursday 02 March 2006 16:33, Adam D. Moss wrote:
> I guess something like this is what's wanted:

You could replace the ipairs look with simply #t (or table.getn(t) on 5.0), 
although that will only work for valid arrays (i.e. tables with non-nil 
numeric elements from 1 to n).

+- David Given --McQ-+ "Of course, on a sufficiently small planet, 40
|    | km/hr is, in fact, sufficient to punt the elastic
| ( | spherical cow into low orbit." --- Brooks Moses on
+- --+ r.a.sf.c

Attachment: pgpBEdr0gujUP.pgp
Description: PGP signature