Function zummi::zummi_naive

source ·
pub fn zummi_naive(phrase: &str) -> Option<String>
Expand description

Splits a phase of two words and shuffles their beginnings.

Naive implementation

Example

extern crate zummi;
assert_eq!(zummi::zummi_naive("hello world"), Some(String::from("wello horld")));