lua-users home
lua-l archive

Re: ipairs and extending numeric for loop

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


On Wed, May 26, 2010 at 4:50 PM, phlnc8 <phlnc8@gmail.com> wrote:
> What would be lost then is general iteration forms such as:
>  for a,b,c,d,e in some_iterator_returning_five_values() do ...
>
> Is that frequent?
Yes - string.gmatch() returns an arbitrary number of capture values. I
use this quite a lot.
-Duncan

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