Crates.io | partition-iterator |
lib.rs | partition-iterator |
version | 0.1.0 |
source | src |
created_at | 2022-03-08 14:58:38.406689 |
updated_at | 2022-03-08 14:58:38.406689 |
description | Iterator adaptors that enumerate all partitions or all k-partitions of an iterator's content. |
homepage | |
repository | https://github.com/microgravitas/partition-iterator |
max_upload_size | |
id | 546333 |
size | 13,314 |
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;
Licensed under MIT license https://opensource.org/licenses/MIT.