Demo · Doc. Rust. let chunks: Vec<_> = s.split(' ').collect();. Warning: this returns some empty strings in chunks, in case of multiple consecutive spaces ...
確定! 回上一頁