Join Slack
Communities
Powered by
If I'm not mistaken, you could just write a Sequen...
# announcements
j
jbnizet
06/08/2016, 8:31 PM
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.
Open in Slack
Previous
Next