2 ms·
> This is the problem with python's conflation of iterable and iterator It really is not. It’s just a natural outcome of imperative langages. If operations can
by masklinn 4y ago
> This is the problem with python's conflation of iterable and iterator
It really is not. It’s just a natural outcome of imperative langages. If operations can have side-effects, then combinator behaviour will affect those side-effects.
You could do the same with iterables with side-effecting iterations.
It’s also perfectly logical to be able to iterate an iterator.