Splitting a stream of data on based on data change.

2019-11-21 Thread Taylor R Hillegeist via Digitalmars-d-learn
I was looking through the standard library for a good way to split a range into several ranges based on value changes in the stream: AAABB would be split on the AB transition into: AAA BB I just couldn't figure out an elegant way to do it? Any ideas?

Re: Splitting a stream of data on based on data change.

2019-11-21 Thread Alex via Digitalmars-d-learn
On Thursday, 21 November 2019 at 21:36:08 UTC, Taylor R Hillegeist wrote: I was looking through the standard library for a good way to split a range into several ranges based on value changes in the stream: AAABB would be split on the AB transition into: AAA BB I just couldn't

Re: Splitting a stream of data on based on data change.

2019-11-21 Thread Taylor R Hillegeist via Digitalmars-d-learn
On Thursday, 21 November 2019 at 22:11:59 UTC, Alex wrote: On Thursday, 21 November 2019 at 21:36:08 UTC, Taylor R Hillegeist wrote: I was looking through the standard library for a good way to split a range into several ranges based on value changes in the stream: AAABB would be spli