[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: need for kpairs() ?
- From: Asko Kauppi <askok@...>
- Date: Mon, 12 Dec 2005 00:59:09 +0200
I've been doing quite a lot of "iterate all non-numeric indices"
lately (going through XML attributes) and was wondering, have others
noticed a need for a "third" iterator, like ipairs() and pairs() are
What it would be is like pairs() but skipping any numeric indeces
(even negative, and non-integer, so it wouldn't be strictly a
negation of ipairs).
Doing this iterator is trivial, and I will do one. But about the
survey: would YOU need one, as well?