ruby-slow-enumerator-tools
transformation of Ruby enumerators to produce data slowly and unpredictably
Description
This Ruby library provides tools for transforming Ruby enumerators that produce data slowly and unpredictably. * SlowEnumeratorTools.merge: given a collection of enumerables, creates a
new enumerator that yields elements from any of these enumerables as soon
as they become available.
* SlowEnumeratorTools.batch: given an enumerable, creates a new enumerable
that yields batches containing all elements currently available.
* SlowEnumeratorTools.buffer: given an enumerable and a number, will create
a buffer of that number of elements and try to fill it up with as many
elements from that enumerable, so that they can be yielded immediately.
Upload more screenshots
Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.
Upload a screenshotHint: upload an image here from your clipboard with Ctrl-V
Homepage
https://github.com/ddfreyne/slow_enumerator_tools
Install this software package
If the package is available for the distribution you are currently using on your computer then install the software by clicking on…
Install ruby-slow-enumerator-tools