[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [ANN] Penlight Libraries, First release
- From: David Manura <dm.lua@...>
- Date: Wed, 13 May 2009 02:24:04 -0400
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.
- References:
- Re: [ANN] Penlight Libraries, First release, Flemming Madsen
- Re: [ANN] Penlight Libraries, First release, steve donovan
- Re: [ANN] Penlight Libraries, First release, David Manura
- Re: [ANN] Penlight Libraries, First release, steve donovan
- Re: [ANN] Penlight Libraries, First release, Mark Hamburg