lua-users home
lua-l archive

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


On Tue, Feb 1, 2011 at 2:50 PM, Steve Litt <slitt@troubleshooters.com> wrote:
> to salivate about them. How could I, within 5 minutes, demonstrate a wonderful
> benefit of coroutines?

Look at

https://github.com/stevedonovan/lua-cookbook/blob/master/src/book/en_US/intro.md

and search for 'coroutines'.  It's the classic
turn-a-recursive-function-into-an-iterator example.

steve d.