11 Apr
2014
11 Apr
'14
6:55 a.m.
Some guy did a similar thing, just better:
https://github.com/JulienPalard/Pipe
BTW, Changing the built-in iterators would require a change in the abc's.
João Bernardo
On 10 April 2014 19:09, Jacek Pliszka
OK, if method chaining is a problem, what about:
from StreamAlgebra import Map, Filter, Reduce from operator import add
range(100) | Filter(f1) | Map(f2) | Filter(f3) | Map(f4) | Reduce(add)
BR,
Jacek
_______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/