Registry / utility / permutohedron

permutohedron

JSON →
library0.2.4rscratesunverified

Generate permutations of sequences using lexicographic order or Heap's algorithm.

# Cargo.toml [dependencies] permutohedron = "0.2.4"
INSTALL
IMPORT
SIG · PERMUTOHEDRON
P
permutohedron
utilityrustv0.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Heap
✓ use permutohedron::Heap;

Iterate over all permutations of a vector using Heap's algorithm.

use permutohedron::Heap; let mut data = vec![1, 2, 3]; let heap = Heap::new(&mut data); for permutation in heap { println!("{:?}", permutation); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
permutohedron — cargo add permutohedron · libregistry