Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Apr 19th, 2018
71
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn main() {
let foo: Vec<&str> = "the\tbeginning.\nthe\tend."
.lines()
.map(|x| x.split_whitespace().collect::<_>())
.collect::<_>();
//expect a vector of words
println!("{:?}", foo)
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
python lab (23/04/2024)
Python | 3 min ago | 2.24 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 6 min ago | 0.39 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 7 min ago | 0.38 KB
find bigest island - backtracking, recursion
C# | 41 min ago | 2.88 KB
Untitled
HTML | 1 hour ago | 3.75 KB
Untitled
HTML | 1 hour ago | 7.60 KB
Untitled
HTML | 1 hour ago | 0.94 KB
Kmp
C++ | 1 hour ago | 1.10 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!