Steven D'Aprano <st...@pearwood.info>: > Here is a way to do functional-programming-like pipelines to collect > and transform values from an iterable: > > https://code.activestate.com/recipes/580625-collection-pipeline-in-python/
Nice. The other day we talked about Python replacing bash. Pipelining is a big step in that direction. Note also the Scheme Shell (scsh): URL: https://scsh.net/docu/html/man-Z-H-3.html>. Question: Could the generators define __repr__ so you wouldn't need to terminate the pipeline with "List" in interactive use? Marko -- https://mail.python.org/mailman/listinfo/python-list