| ▲ | few 2 hours ago | |
I felt like one or two decades ago, all the rage was about rewriting programs into just two primitives: map and reduce. For example filter can be expressed as:
But then the world moved on from it because it was too rigid | ||
| ▲ | mememememememo an hour ago | parent [-] | |
Performance aside it seems you could do most maybe a the ops with those three. I say three because your sneaky plus is a union operation. So map, reduce and union. But you are also allowing arbitrary code expressions. So it is less lego-like. | ||