char_combinator

Crates.iochar_combinator
lib.rschar_combinator
version1.1.2
sourcesrc
created_at2020-07-07 15:50:11.451307
updated_at2020-12-16 17:56:46.230022
descriptionAn iterator to create all combination of a given char range
homepage
repositoryhttps://github.com/hardliner66/char_combinator
max_upload_size
id262318
size7,267
Steve Biedermann (hardliner66)

documentation

README

char_combinator

An iterator to create all combination of a given char range.

e.g.:

a
b
c
...
aa
ab
ac
...

Features

The iterator uses an u128 as internal counter. If you need more strings than that, you can use the bigint feature.

Example

fn main() {
    for (i, s) in CharCombinator::default().take(104).enumerate() {
        println!("{}: {}", i, s);
    }
}
Commit count: 7

cargo fmt