Generator (computer programming): Difference between revisions

Content deleted Content added
Jordinas (talk | contribs)
Added jq language
m General fixes and Typo fixing, replaced: AKA → a.k.a. using AWB
Line 84:
===Jq===
 
As in Icon, in [[Jq_Jq (programming_languageprogramming language)|jq]] every expression is a generator. The infinite generator of primes can serve as an example:
 
<pre>
Line 537:
===ECMAScript===
 
ECMAScript 6 (AKAa.k.a. Harmony) will feature generator functions.
 
An infinite Fibonacci sequence can be written using a function generator: