automataci 1.7.0

Solid Foundation for Kickstarting Your Software Development
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// [ COPYRIGHT CLAUSE HERE ]
pub fn process<'a>(name: &'a str, location: &'a str) -> String {
    if name == "" && location == "" {
        return "".to_string();
    } else if name == "" {
        return format!("stranger from {location}!");
    } else if location == "" {
        return format!("{name}!");
    } else {
        return format!("{name} from {location}!");
    }
}