4 ms·
For js/ts developer the best explanation is - you have a functions that take iterable on input and returns generator. If you arrange your functions as higher or
by mirekrusin 3y ago
For js/ts developer the best explanation is - you have a functions that take iterable on input and returns generator. If you arrange your functions as higher order functions (functions that return Iterable => Generator function) you can pipe them constructing arbitrary pipelines.
We use this technique in trading systems. It works very well for certain class of problems. It looks like this [0].
[0] https://observablehq.com/@mirek/project-euler https://observablehq.com/@mirek/project-euler