Re: [ANN] Lua 5.3.0 (alpha) now available
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (alpha) now available
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Fri, 1 Aug 2014 08:31:56 -0300
> Is there a reason why the protocol for `ipairs` has changed from
> "iterate to first nil value" to "iterate to #table"? The first is well
> defined for all tables, and runs in O(n), while the second needs
> O(nlog(n)) time
It's O(n+log(n))=O(n) time.