2019-06-22から1日間の記事一覧
TL;DR fn main() { println!("{}", space_replacer("hello world dayo e?".to_string().as_mut_str())); } fn space_replacer(src: &mut str) -> String { let dst = &mut src.replace(" ", " "); match dst.find(" ") { Some(_) => { space_replacer(dst) }…