4 ms·
What's kinda missing in the whole article is that the member expression is actually map. The example is {x | generator(x) & filter(x) & filter(x)} while you cou
by maweki 7y ago
What's kinda missing in the whole article is that the member expression is actually map. The example is {x | generator(x) & filter(x) & filter(x)} while you could actually {f(x) | generator(x) ...} which is basically map(f,xs). The shown languages do support expressions in this component.
- a-saleh 7y agoI don't think map is sufficient, apart from the trivial example where you bind a single generator. Even in python, these behave as bind? Or I didn't understand what you mean :)
- maweki 7y agoThe generator for X is shown and a filter is shown but not that you can put any expression for X instead of just X. And this corresponds to map while the other part, as shown corresponds to filter. So the full power is missing when you don't put an expression.