lua-users home
lua-l archive

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


> On Aug 6, 2016, at 1:21 PM, Soni L. <fakedme@gmail.com> wrote:
> 
> So we have string.len but no table.len.
> 
> Can we get table.len? As with string.len, it should be equivalent to a type-checking #.
> 
> -- 
> Disclaimer: these emails may be made public at any given time, with or without reason. If you don't agree with this, DO NOT REPLY.
> 
> 

table.len = function(t) return #t end