[Python-ideas] Adding some standalone iterator/sequence functions as methods of the iterator objects
Jan Kaliszewski
zuo at chopin.edu.pl
Thu Aug 13 01:40:14 CEST 2009
13-08-2009 Jan Kaliszewski <zuo at chopin.edu.pl> wrote:
> Maybe it could be generalized? Imagine funpipe() factory function (or
> with another name, doesn't matter at the moment) which could produce
> proxy objects with such a feature that e.g.:
>
> funpipe(<args0...>).fun1(<args1...>).fun2(<args2...>).fun3(<args3...>)
PS. Maybe '|' operator would be here more easy to implement and more
logical -- e.g.:
funpipe().fun1(<args1...>) | fun2(<args2...>) | fun3(<args3...>)
Treat it as a 'loud thinking'.
*j
--
Jan Kaliszewski (zuo) <zuo at chopin.edu.pl>
More information about the Python-ideas
mailing list