partition-iterator

Crates.iopartition-iterator
lib.rspartition-iterator
version0.1.0
sourcesrc
created_at2022-03-08 14:58:38.406689
updated_at2022-03-08 14:58:38.406689
descriptionIterator adaptors that enumerate all partitions or all k-partitions of an iterator's content.
homepage
repositoryhttps://github.com/microgravitas/partition-iterator
max_upload_size
id546333
size13,314
(microgravitas)

documentation

README

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.

Commit count: 11

cargo fmt