Crates.io | char_combinator |
lib.rs | char_combinator |
version | 1.1.2 |
source | src |
created_at | 2020-07-07 15:50:11.451307 |
updated_at | 2020-12-16 17:56:46.230022 |
description | An iterator to create all combination of a given char range |
homepage | |
repository | https://github.com/hardliner66/char_combinator |
max_upload_size | |
id | 262318 |
size | 7,267 |
An iterator to create all combination of a given char range.
e.g.:
a
b
c
...
aa
ab
ac
...
The iterator uses an u128 as internal counter. If you need more strings than that, you can use the bigint
feature.
fn main() {
for (i, s) in CharCombinator::default().take(104).enumerate() {
println!("{}: {}", i, s);
}
}