lua-users home
lua-l archive

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


On 24 August 2011 17:17, Dirk Laurie <dpl@sun.ac.za> wrote:
> What is the most Lua-tic way of writing a function that:
>
> (a) returns {m,m+k,...,m+(n-1)*k} given n?

Return an interator instead of a list of precomputed values?
More info in Programming In Lua, chapter 7.

   M