lua-users home
lua-l archive

Re: The "i" in "ipairs"

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


> 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

AltStyle によって変換されたページ (->オリジナル) /