[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Next Version of Lua? (__iter metamethod)
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 12 Jun 2009 07:59:21 +0200
On Fri, Jun 12, 2009 at 5:12 AM, David Manura<dm.lua@math2.org> wrote:
> for k,v in obj:it() do
> ...
> end
For Penlight, I've standardized on this for all collection classes.
Although list:iter() currently just runs over the values, not the
keys, whereas map:iter() goes over the key/value pairs, which could be
a suprise.