Crates.io | is_anagram |
lib.rs | is_anagram |
version | 0.1.0 |
source | src |
created_at | 2017-06-17 21:05:50.716956 |
updated_at | 2017-06-17 21:05:50.716956 |
description | A clever way to find anagrams. (English letters only for now, sorry!) |
homepage | |
repository | https://github.com/killercup/is_anagram |
max_upload_size | |
id | 19359 |
size | 17,419 |
A quick thing I threw together after seeing this tweet.
extern crate is_anagram;
use is_anagram::IsAnagram;
fn main() {
assert!("banana".is_anagram_of("nabana").unwrap());
assert!(!"lorem".is_anagram_of("ipsum").unwrap());
}
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.