Generator/Exponential: Difference between revisions

Content deleted Content added
Oenone (talk | contribs)
m →‎{{header|Ada}}: extend comment
Line 723: Line 723:


=={{header|Lua}}==
=={{header|Lua}}==
Generators can be implemented both as closures or as coroutines. The following example demonstrates both.
Generators can be implemented both as closures and as coroutines. The following example demonstrates both.


<lang Lua>
<lang Lua>