A Markov chain crate for Rust.
This implementation should work for any item that implements Hash
+ Eq
+ Clone
.
```rust use march::Chain;
fn main() { let mut chain = Chain::new(); let sentence = "The quick brown fox jumped over the lazy dog".tolowercase(); let mut words = sentence.splitwhitespace().into_iter(); chain.feed(&mut words);
let sentence = chain.generate();
dbg!(sentence);
} ```
See examples for more usages.