[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How to determine true size of a table?
- From: David Given <dg@...>
- Date: Thu, 2 Mar 2006 16:45:16 +0000
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
| email@example.com | km/hr is, in fact, sufficient to punt the elastic
| (firstname.lastname@example.org) | spherical cow into low orbit." --- Brooks Moses on
+- www.cowlark.com --+ r.a.sf.c
Description: PGP signature