generator.rb

Path: generator.rb
Last Update: Sun May 09 23:34:44 GMT+10:00 2004

generator.rb: convert an internal iterator to an external one

Copyright © 2001,2003 Akinori MUSHA <knu@iDaemons.org>

All rights reserved. You can redistribute and/or modify it under the same terms as Ruby.

Overview

This library provides the Generator class, which converts an internal iterator (i.e. an Enumerable object) to an external iterator. In that form, you can roll many iterators independently.

The SyncEnumerator class, which is implemented using Generator, makes it easy to roll many Enumerable objects synchronously.

See the respective classes for examples of usage.

Classes and Modules

Class Generator
Class SyncEnumerator

[Validate]