Function portmanteau::portmanteau[][src]

pub fn portmanteau(a: &str, b: &str) -> Option<String>
Expand description

This function creates a portmanteau of the two given words if possible

Both inputs given should be lowercase single words, without punctuation, and 5 or more letters in length. Doing so would result in receiving None

Examples

use portmanteau::portmanteau;

    let something = portmanteau("fluffy", "turtle");
    assert_eq!(
    something,
    Some(String::from("flurtle"))
    );

    let nothing = portmanteau("tiny", "word");
    assert_eq!(
    nothing,
    None
    );