4 Jul 2014
Updated: 6 Jul 2014
Rating: 5.00/5
Votes: 1
Popularity: 0.00
Licence: CPOL
Views: 51,079
Bookmarked: 4
Downloaded: 0
Today we'll look at creating generators. In simple terms, a generator is a function which returns the next value in a sequence. Unlike an iterator, it generates the next value when needed, rather than returning the next item of a pre-generated collection. Some languages such as Python support
|