lua-users home
lua-l archive

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

>> It doesn't look similar to me. One has two loops, the other has one.
>> extra loop adds complexity.

> The inner loop is the only difference I can see.
> It does not add complexity as the inner loop is _always_ executed only
> Since the inner loop is finished with a break, it will never have a
> for a second execution.

I was referring primarily to the complexity of the source code, not the
run-time performance.