https://github.com/cchexcode/ez_alphabet
https://github.com/cchexcode/ez_alphabet
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cchexcode/ez_alphabet
- Owner: cchexcode
- License: mit
- Created: 2024-04-24T20:01:29.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-24T10:06:06.000Z (over 1 year ago)
- Last Synced: 2024-11-27T07:19:11.163Z (over 1 year ago)
- Language: Rust
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: docs/README.md
- License: LICENSE
Awesome Lists containing this project
README
# EZ Alphabet
An implementation of an easy to work with alphabet.
## Examples
```rust
// Following example creates 4 strings, encoding the numbers 4 to 8 (start: 4, count: 5) in the given alphabet.
assert_eq!(Alphabet::from("abcdef").unwrap().generate(4, 5), vec!["e", "f", "aa", "ab", "ac"]);
```