One solution would be, I think, to always pass tee-d copies of iterators and never(!) any iterator like it is (because you don't know whether next() has side effects or not). The other solution would be to not ever do anything lazy. One could also always consume all iterators fully. That way any generator re-use would be apparent immediately.
Some function that moves a generator forward just one or two items (something with the semantics of findFirst, for example), can subtly introduce bugs.
If you get some huge collection to scan, or wants to sync your code by sharing an iterator internal state, you may want to break that rule. But they are just too troublesome for my taste.
I don't see how find_first would cause any more problems than filter or sum.
See here:
This itertool may require significant auxiliary storage (depending on how much temporary data needs to be stored). In general, if one iterator uses most or all of the data before another iterator starts, it is faster to use list() instead of tee().
https://docs.python.org/2/library/itertools.html#itertools.t...
There are some gotchas where you need to explicitly copy (itertools.tee) iterators when you have multiple consumers, and be careful with mutable values, but it's manageable.
It would be nice to use curried functions as functools.partial gets verbose, but at that point you're far from Pythonic code.