Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 22nd, 2018
65
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
fn main() {
let numbers = "12.03 0.3 44.2 45 zzz"
.split_whitespace()
.map(|n| n.parse::<f32>())
.filter_map(|n| n.ok());
for n in numbers{
println!("{:?}", n);
}
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
200. Number of Islands
C++ | 15 min ago | 1.39 KB
SDL FLAC experiment
C++ | 46 min ago | 0.87 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 51 min ago | 0.39 KB
222
VisualBasic | 58 min ago | 19.97 KB
111
C# | 1 hour ago | 3.26 KB
Dancer style
LScript | 1 hour ago | 5.55 KB
News April18 24
Email | 1 hour ago | 28.71 KB
[6027] CrownFall Candy Shop Rewards | t.me/DO...
JSON | 2 hours ago | 19.98 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!