lua-users home
lua-l archive

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


On 28 June 2016 at 16:29, steve donovan <steve.j.donovan@gmail.com> wrote:
> However, I'm all for table.pack() returning a table which has a
> metatable with __len = self.n, and table.unpack() respecting this.

Perhaps something like this?
https://gist.github.com/daurnimator/aa23173220a5b3d1a97a

Which really doesn't need any changes to lua itself anyway; just a
vague agreement on 'one' standard sequence/array/list library.