Hacker News new | past | comments | ask | show | jobs | submit login

Some(1).unwrap_or(0)



Return 0 is different from using 0 in the rest of the function body.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: