fnfb_likes(names:&[&str])->String{matchnames.len(){0=>"no one likes this".to_string(),1=>format!("{} likes this",names[0]),2=>format!("{} and {} like this",names[0],names[1]),3=>format!("{}, {} and {} like this",names[0],names[1],names[2]),_=>format!("{}, {} and {} others like this",names[0],names[1],names.len()-2),}}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Rust Playground