Re: Proposal: table.sort returning the sorted table.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Proposal: table.sort returning the sorted table.
- From: Benoit Germain <bnt.germain@...>
- Date: 2011年4月11日 09:09:28 +0200
2011年4月11日 唐刚 <tg@legerobot.com>:
> I support table.sort returning its first argument.
>
> Because nowadays the chaining operation is very popular from javascript and
> jQuery, this would be an important language feature to treat serously. With
> this feature, codes will be shorter and smoother.
>
>
local table_sort = table.sort
table.sort = function( t, ...)
table.sort( t, ...)
return t
end
--
Benoit.
- References:
- Proposal: table.sort returning the sorted table., Lorenzo Donati
- Re: Proposal: table.sort returning the sorted table., Luiz Henrique de Figueiredo
- Re: Proposal: table.sort returning the sorted table., Lorenzo Donati
- Re: Proposal: table.sort returning the sorted table., Sean Conner
- Re: Proposal: table.sort returning the sorted table., Lorenzo Donati
- Re: Proposal: table.sort returning the sorted table., Dirk Laurie
- Re: Proposal: table.sort returning the sorted table., Lorenzo Donati
- Re: Proposal: table.sort returning the sorted table., David Kastrup
- Re: Proposal: table.sort returning the sorted table., Lorenzo Donati
- Re: Proposal: table.sort returning the sorted table., Lorenzo Donati
- Re: Proposal: table.sort returning the sorted table., 唐刚