[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: The "i" in "ipairs"
- From: roberto@... (Roberto Ierusalimschy)
- Date: Fri, 8 Dec 2006 17:30:36 -0200
> You're probably right. But what about the "i" in "ipairs"?
> Which of the following did it come from?
>
> - the word "integer"
> - the word "indexed" (or "index")
> - the identifier "i" traditionally used in numeric loops
> (regardless of the source of that tradition)
>
> I realized it may be "a bit of each", but was there a
> primary source?
The last. The origin of this "i" in Lua was in Lua 3.?, which got two
interator functions: foreach and foreachi.
-- Roberto