lua-users home
lua-l archive

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


On Wed, May 13, 2009 at 12:40 AM, Mark Hamburg wrote:
> Naming...
>
> So, "lists" are really "arrays"?

pl.list is not to be confused with the pl.array module, which
implements two-dimensional arrays...  The term "array" is explicit in
the Lua Reference Manual, and I agree this terminology should carry
over into Penlight if Penlight is to be more native than Pythonic.
Python uses the terms "list" and "array" in a different manner [1].

[1] http://stackoverflow.com/questions/176011/python-list-vs-array-when-to-use

> How many of these routines alter their input? More or less all of them?

List:map, List:mapm, List:partition, and List:slice return new lists.
I think at least the map functions should not.