Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Ok so not using a lazy list for matches is basically just around avoiding the requisite allocation? I suppose if you consume the list immediately at the call-site the compiler could in theory after inlining convert it to the closure-based approach for you, but probably wouldn't.


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

Search: