Generator (computer science) | Wikipedia audio article
Channel: wikipedia tts
Date: 18/01/2019

This is an audio version of the Wikipedia Article:
https://en.wikipedia.org/wiki/Generator_(computer_programming)


00:01:12 1 Uses
00:03:43 2 Timeline
00:04:00 2.1 Lisp
00:04:10 2.2 CLU
00:04:41 2.3 Icon
00:04:50 2.4 C
00:05:06 2.5 C++
00:05:16 2.6 Perl
00:05:26 2.7 Tcl
00:06:11 2.8 Haskell
00:06:50 2.9 Racket
00:08:02 2.10 PHP
00:08:22 2.11 Ruby
00:08:39 2.12 Java
00:09:32 2.13 C#
00:10:38 2.14 XL
00:11:00 2.15 F#
00:11:17 2.16 Python
00:13:00 2.16.1 Generator expressions
00:13:38 2.17 ECMAScript
00:13:51 2.18 R
00:14:40 3 See also
00:15:31 4 Notes
00:15:59 5 References
00:16:20 R
00:16:33 See also



Listening is a more natural way of learning, when compared to reading. Written language only began at around 3200 BC, but spoken language has existed long ago.

Learning by listening is a great way to:
- increases imagination and understanding
- improves your listening skills
- improves your own spoken accent
- learn while on the move
- reduce eye strain

Now learn the vast amount of general knowledge available on Wikipedia through audio (audio article). You could even learn subconsciously by playing the audio while you are sleeping! If you are planning to listen a lot, you could try using a bone conduction headphone, or a standard speaker instead of an earphone.

Listen on Google Assistant through Extra Audio:
https://assistant.google.com/services/invoke/uid/0000001a130b3f91
Other Wikipedia audio articles at:
https://www.youtube.com/results?search_query=wikipedia+tts
Upload your own Wikipedia articles through:
https://github.com/nodef/wikipedia-tts
Speaking Rate: 0.8383793681593328
Voice name: en-US-Wavenet-D


"I cannot teach anybody anything, I can only make them think."
- Socrates


SUMMARY
=======
In computer science, a generator is a special routine that can be used to control the iteration behaviour of a loop. In fact, all generators are iterators. A generator is very similar to a function that returns an array, in that a generator has parameters, can be called, and generates a sequence of values. However, instead of building an array containing all the values and returning them all at once, a generator yields the values one at a time, which requires less memory and allows the caller to get started processing the first few values immediately.  In short, a generator looks like a function but behaves like an iterator.
Generators can be implemented in terms of more expressive control flow constructs, such as coroutines or first-class continuations. Generators, also known as semicoroutines, are a special case of (and weaker than) coroutines, in that they always yield control back to the caller (when passing a value back), rather than specifying a coroutine to jump to; see comparison of coroutines with generators.