lua-users home
lua-l archive

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


On Wed, May 13, 2009 at 3:04 AM, steve donovan wrote:
> On Wed, May 13, 2009 at 8:24 AM, David Manura wrote:
>
>> List:map, List:mapm, List:partition, and List:slice return new lists.
>> I think at least the map functions should not.
>
> As I understand, you mean that tablex.map does not return a List.

No, this point is unrelated to what tablex does.  I mean that the List
operation t:map() does not modify t but rather returns a new object.
This differs from t:reverse(), which modifies t in-place and returns
itself.