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

It would help to have more complete examples here. Also, at least one of the examples that are supposed to be correct clearly does not compile (the loop calling push will fail because the Vec is not declared as mut), which makes me doubt the assertions about the other examples, especially because of the lack of context.



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

Search: