Top "Generator" questions

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

JavaScript Unique Browser Id

is there anyway to create a unique ID for a browser within javascript? Im not talking about an ID that …

javascript unique generator uniqueidentifier
PHP API Key Generator

Does anyone know of any API key generator script/class for PHP? The class should have method generate, that would …

php security key generator api-key
Is there an expression for an infinite generator?

Is there a straight-forward generator expression that can yield infinite elements? This is a purely theoretical question. No need for …

python iterator generator infinite-loop
Reading from a frequently updated file

I'm currently writing a program in python on a Linux system. The objective is to read a log file and …

python file-io generator fopen
Java Sudoku Generator(easiest solution)

In my last question seen here: Sudoku - Region testing I asked how to check the 3x3 regions and someone …

java generator sudoku solver
Data generators for SQL server?

I would like to receive suggestions on the data generators that are available, for SQL server. If posting a response, …

sql-server generator data-generation
The pythonic way to generate pairs

I want something like code below, but "pythonic" style or using standard library: def combinations(a,b): for i in …

python generator combinatorics
Equivalent C++ to Python generator pattern

I've got some example Python code that I need to mimic in C++. I do not require any specific solution (…

c++ python generator yield coroutine
Generator functions equivalent in Java

I would like to implement an Iterator in Java that behaves somewhat like the following generator function in Python: def …

java python iterator generator
How to check if an object is a generator object in python?

In python, how do I check if an object is a generator object? Trying this - >>> type(…

python generator