Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
blegr
· 2y ago · 0 comments
Now that GP said it, it'd be nice to be able to write "some_map[i].value_or(some_value)".
Comments
[–]
School-Cotton
2y ago
You can do this in rust with Vec::get, which returns an Option<&T>.