Functions that yield multiple times

I recently introduced you to JavaScript generators which I think are a really interesting feature that we should look at for the future of JavaScript. In that blog post I was talking about LINQ in JavaScript and kind of glanced over an important part o…


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail

I recently introduced you to JavaScript generators which I think are a really interesting feature that we should look at for the future of JavaScript. In that blog post I was talking about LINQ in JavaScript and kind of glanced over an important part of generators, and that’s how you use them if you’re not using a for-of loop. While generators make a lot of sense in the scope of managing datasets that isn’t their only usage, in reality generators are quite useful if you want to lazily execute any function.


This content originally appeared on Posts on LINQ to Fail and was authored by Posts on LINQ to Fail


Print Share Comment Cite Upload Translate
APA
Posts on LINQ to Fail | Sciencx (2023-12-04T12:53:11+00:00) » Functions that yield multiple times. Retrieved from https://www.scien.cx/2014/01/13/functions-that-yield-multiple-times/.
MLA
" » Functions that yield multiple times." Posts on LINQ to Fail | Sciencx - Monday January 13, 2014, https://www.scien.cx/2014/01/13/functions-that-yield-multiple-times/
HARVARD
Posts on LINQ to Fail | Sciencx Monday January 13, 2014 » Functions that yield multiple times., viewed 2023-12-04T12:53:11+00:00,<https://www.scien.cx/2014/01/13/functions-that-yield-multiple-times/>
VANCOUVER
Posts on LINQ to Fail | Sciencx - » Functions that yield multiple times. [Internet]. [Accessed 2023-12-04T12:53:11+00:00]. Available from: https://www.scien.cx/2014/01/13/functions-that-yield-multiple-times/
CHICAGO
" » Functions that yield multiple times." Posts on LINQ to Fail | Sciencx - Accessed 2023-12-04T12:53:11+00:00. https://www.scien.cx/2014/01/13/functions-that-yield-multiple-times/
IEEE
" » Functions that yield multiple times." Posts on LINQ to Fail | Sciencx [Online]. Available: https://www.scien.cx/2014/01/13/functions-that-yield-multiple-times/. [Accessed: 2023-12-04T12:53:11+00:00]
rf:citation
» Functions that yield multiple times | Posts on LINQ to Fail | Sciencx | https://www.scien.cx/2014/01/13/functions-that-yield-multiple-times/ | 2023-12-04T12:53:11+00:00
https://github.com/addpipe/simple-recorderjs-demo