Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 22nd, 2019
97
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 x = vec![Some((5,3)), Some((1,11)), None, None, Some((25,100))];
let m : Vec<_> = x.iter()
.filter(|c| c.is_some())
.map(|c| c.unwrap())
.collect();
dbg!(m);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Ulica (Bakurski)
Java | 6 min ago | 3.98 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 16 min ago | 0.38 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 20 min ago | 0.39 KB
Pobieranie YT
PowerShell | 56 min ago | 0.49 KB
Character Name Generator (ChatGPT)
C# | 1 hour ago | 6.15 KB
about
Lua | 1 hour ago | 1.44 KB
linq
Lua | 1 hour ago | 0.20 KB
sha256
Python | 1 hour ago | 5.71 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!