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

For first class citizen functions, you want lambdas. Lambdas are a type of Proc but trap the return statement.

Blocks are pretty much an iteration construct.

It's really not that confusing.



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

Search: