wordbreaker
is a no_std
crate (requires
alloc
) that rapidly finds all
concatenations of words in a dictionary that produce a certain input string.
```rust use wordbreaker::Dictionary;
let dictionary = Dictionary::new(&["hello", "just", "ice", "justice"]).unwrap(); let mut waystoconcatenate = dictionary.concatenationsfor("justice"); waystoconcatenate.sortunstable();
asserteq!(waysto_concatenate, [vec!["just", "ice"], vec!["justice"]]); ```