[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: table.sort returning the sorted table.
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 9 Apr 2011 15:27:53 -0300
> I was wondering whether it would be sensible to modify the table.sort
> function so that it returns its first argument.
table.sort does not return the table to avoid giving the impression that
it creates a new table. In other words, it stresses the point that the
sort in performed in place.