lua-users home
lua-l archive

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


On Fri, Aug 1, 2014 at 11:38 AM, Patrick Donnelly <batrick@batbytes.com> wrote:
> How about:
>
> table.icopy(from_tbl [, from_idx [, num_elements [, to_tbl [, to_idx ]]]])
>
> Defaults:
>
> from_idx = 1
> num_elements = #from_tbl

Oops, that should be:

num_elements = #from_tbl - from_idx + 1

-- 
Patrick Donnelly