lua-users home
lua-l archive

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


Its not a table. Closest equivalent was to use the interface from string library.

On Sun, May 5, 2019 at 10:51 AM Parke <parke.nexus@gmail.com> wrote:
On Wed, May 1, 2019 at 4:20 PM Srinivas Murthy
<the.srinivas.murthy@gmail.com> wrote:
> How do I make copy of a buffer in lua?
> I have an event buffer and I need to save a part of it.

If your "buffer" is a table, maybe table.move() would work?

https://www.lua.org/manual/5.3/manual.html#pdf-table.move