lua-users home
lua-l archive

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


> 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.