[][src]Function zummi::zummi_naive

pub fn zummi_naive(phrase: &str) -> Option<String>

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")));