My Generator Journey
A practical, small-scale use-case
The yield keyword has existed in Python since version 2.2 (2001), and JavaScript 1.7 (2006) but dates back as far as 1975. Over the years I have periodically remembered the existence of generators, read a handful of articles introducing them, and promptly put them to the back of my mind as trivia rather than a useful tool. It was only recently that I feel I have understood the value they provide.
[Read More]