You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the context of streams, the method which I believe makes most sense is deduping sequential elements, not all elements, as this is an operation more suited for doing in a collection. However, deduping sequential elements can be very handy for implementing signal-type interfaces that are only triggered when an element actually changes.
I understand thinking of streams as just the future equivalent of future-backed iterators (because that seems to be the design intent), however, I think they can be slightly more, mainly, well, streams of data that can be altered, filtered, diverted, etc., in ways an iterator might not be.
I am surprised this is something not currently implemented for
Stream
, unless I am missing something. It would be a great addition.The text was updated successfully, but these errors were encountered: