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

I'm not all about hip, but closures are mightily useful. The article does a good job of explaining an interesting use of closures.

It's not all that complicated either, since it's basically what Unix pipes do: generate a stream of value, filter them, and consume a stream.

The article sure doesn't show a practical use, but rather enriches the standard library with useful features, and shows a pattern that can be applied to many practical problems.



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

Search: