Top "Generator" questions

A generator is a generalisation of a subroutine, primarily used to simplify the writing of iterators.

Split a generator into chunks without pre-walking it

(This question is related to this one and this one, but those are pre-walking the generator, which is exactly what …

python generator
Generating questions from text (NLP)

What approaches are there to generating question from a sentence? Let's say I have a sentence "Jim's dog was very …

text nlp generator toolkit
Python generator objects: __sizeof__()

This may be a stupid question but I will ask it anyway. I have a generator object: >>> …

python generator internals
Android ToneGenerator example code

Just wondering if anyone has come by any example code using the ToneGenerator class? I would like to generate tones …

java android generator frequency
Python Reverse Generator

I'm looking for a way to reverse a generator object. I know how to reverse sequences: foo = imap(seq.__getitem__, …

python generator reverse
SyntaxError: Unexpected Identifier (Generators in ES6)

I came up with this simple experiment after reading the documentation on generators from MDN: var nodes = { type: 'root', value: [ { …

javascript node.js generator yield ecmascript-harmony
When is not a good time to use python generators?

This is rather the inverse of What can you use Python generator functions for?: python generators, generator expressions, and the …

python optimization iterator generator
What are C# Iterators and Generators, and how could I utilize them

I am a VB.Net developer, kind of newbie in C#, While looking in C# documentation I came through Iterators …

c# .net iterator generator enumerators
Trying to understand generators / yield in node.js - what executes the asynchronous function?

Node.js now has generators. My understanding is that generators can be used to write code that appears to be …

node.js generator yield
Python: powerset of a given set with generators

I am trying to build a list of subsets of a given set in Python with generators. Say I have …

python algorithm set generator powerset