Hi Marcus 2011/9/20 Marcus Denker <[email protected]>: > > On Sep 20, 2011, at 3:50 PM, drush66 wrote: > >> I have found on StackOverflow that GNU and Squeak support Generators: >> >> http://stackoverflow.com/questions/6529815/how-are-coroutines-implemented-in-smalltalk >> >> Could they be used with Pharo? > > According to this tracker entry: > > http://code.google.com/p/pharo/issues/detail?id=3527 > > Class Generator was added as 13009 very early in 1.3. > > Yet, in my 1.3 there is no class Generator... > > (nobody needed it, either...) >
I'm using generators for filling values on matrices and random residues on sequences. For example; ( Generator on: [: g | 15 timesRepeat: [ g yield: 2 ] ] ) upToEnd Hernán
