Open maxfischer2781 opened 7 years ago
The current behaviour is depth-first and sensitive to join/fork.
1 >> 2 >> (3 >> 4, 5 >> 6) >> 7
1
before the result is passed to 2
.(...)
before the result is passed to 7
.3 >> 4
before 5 >> 6
.7
is a flat sequence of the output of 3 >> 4
followed by 5 >> 6
.Notes for a/synchronous [A/S] traversal:
1
-type or n
-type.
1
-types are always individual, arbitrary objectsn
-types are iterators [S: list
]
itertools.tee
Chain traversal currently uses an arbitrary but strictly synchronous traversal method that is piecewise depth-first. For asynchronous, lazy and parallel traversal, an asynchronous model is required. Ideally, this does preserver the result of synchronous traversal.