Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge (S(SKK)(SKK))(S(SKK)(SKK))

Name: Anonymous 2011-04-10 9:36

The challenge: Implement generators in the favourite language of yours.
Are banned: Language native generators (i.e. FIOC's yield), delimited continuations (sorry, Schemers, that would be too easy).

The test program will be an infinite generator that computes facts, and a loop that takes the first five of them.

The deadline is 17/04/2011 00:00 /prog/time.
The most complete, small and easy to use implementation wins.

Name: HotCupOfJava !!7YfDQjROXukLpYb 2011-04-12 3:52

>>35
Instead of writing your method as usual, you simply extend the Generator class.

Name: Anonymous 2011-04-12 3:55

>>36
That is some straight up ENTERPRIZE bullshit right there.

Name: Anonymous 2011-04-12 4:00

>>35
Terrible!

Name: Anonymous 2011-04-12 4:02

>>36
Wow, I guess Java has some advantages after all.

Name: Anonymous 2011-04-12 4:04

>>35
Learn to understand OO.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List