-
Notifications
You must be signed in to change notification settings - Fork 0
Home
jelsas edited this page May 20, 2011
·
17 revisions
JavaItertools is a loose port of Python’s itertools library to Java. This library is intended to have the similar modularity and low memory requirements, with a focus on flexible creation and composition of iterators.
There are three basic ways to use this library:
- Iterator decorators, in the
itertools.iterators
package. - Static factory methods in the
itertools.Itertools
class. - Creating a
itertools.IBuilder
object.
There is some overlap in functionality with Apache Commons Collections but this package aims to have more complete coverage and more flexibility. There’s also some overlap with Guava .
This library is a work in progress and in a functional but fairly unfinished state.
TODO:
- More Examples.
- Add reduce functionality (maybe).
- Add other reduce-like functions: sum, join, others?
- Add tee
- Add analogs to python’s combinatoric generators: product, permutations and combinations
- More documentation.