partition-iterator 0.1.0

Iterator adaptors that enumerate all partitions or all k-partitions of an iterator's content.
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 0 items with examples
  • Size
  • Source code size: 13 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.24 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • microgravitas/partition-iterator
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • microgravitas

Partition iterators

Iterator adaptors that enumerate all partitions or all k-partitions of an iterator's content. The iterator is based on a Python implementation which generate Ruskey Gray codes for so-called "restricted growth sequences" (which biject onto set partitions). As a result, the memory footprint is very low.

How to use with Cargo:

[dependencies]
partition-iterator = "0.1.0"

How to use in your crate:

use partition_iterator::PartitionIter;

License

Licensed under MIT license https://opensource.org/licenses/MIT.