Guest User

Untitled

a guest
Apr 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. fn main() {
  2. let foo: Vec<&str> = "the\tbeginning.\nthe\tend."
  3. .lines()
  4. .map(|x| x.split_whitespace().collect::<_>())
  5. .collect::<_>();
  6.  
  7. //expect a vector of words
  8. println!("{:?}", foo)
  9. }
Add Comment
Please, Sign In to add comment