[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Proposal: table.sort returning the sorted table.
- From: Axel Kittenberger <axkibe@...>
- Date: Mon, 11 Apr 2011 12:31:14 +0200
> The other is a function which has its return value as its principal output, but changes its input
Thats where you went wrong, who said, just because a function does
return something, it is its "principal output".
I'd rather see this change in standard API than projects clutered with:
do
local tablesort = table.sort
function table.sort(t)
tablesort(t)
return t
end
end