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

Well, the most interesting thing about purely functional composition would be the ability to un(de)compose them, inlining the bodies until the resulting function is large enough to be worth the effort of reading it.


Exactly you have the lowest level primitives. You can arbitrarily compose them however you want forming arbitrary layers of abstraction from a tree of compositions.

In the first example there is one layer. In the second there is 2 layers of abstraction formed by composing the primitives into a tree.




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

Search: