lua-users home
lua-l archive

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


On Mon, Dec 13, 2010 at 10:52 PM, Henk Boom <henk@henk.ca> wrote:
> I always differentiate between map and imap (analogous to pairs and
> ipairs). map functions can return nil, but imap functions should not.

That's a good general rule. I'm revising Penlight so I may make imap()
check for nil returns and regard them as an error.

steve d.