[NTG-context] lua tables - how do you cope?

Joseph Canedo josephcanedo at gmail.com
Sat Jul 30 15:04:05 CEST 2016


If the requirement is to iterate on a table having the keys, values sorted by key (assuming the keys can be sorted), there are ways to do this. Please see http://lua-users.org/wiki/SortedIteration for an example (this just replaces pairs(t) with orderedPairs(t)).

Hope this helps

Joseph

DeĀ : Schmitz Thomas A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160730/81fd7f33/attachment-0001.html>


More information about the ntg-context mailing list