If I'm not mistaken, you could just write a Sequen...
# announcements
j
If I'm not mistaken, you could just write a Sequence that wraps the first one by returning an iterator that peeks the next element and caches it. See https://google.github.io/guava/releases/19.0/api/docs/com/google/common/collect/PeekingIterator.html for example.