Generator (computer programming): Difference between revisions

Content deleted Content added
Line 482:
 
<source lang="javascript">
 
// inspired by: http://wiki.ecmascript.org/doku.php?id=harmony:generators
 
function* fibonacci() {