New: itertools.chain
To concatenate two Python iterators, we use chain
. The corresponding Haskell function is (++)
. The chain
function is variadic, whereas the (++)
function is an infix operator; both are fine ways to make nested application more convenient.