Re: Filter out consecutive elements based on comparison between adiacent two

2019-01-31 Thread Langer via Digitalmars-d-learn
On Thursday, 31 January 2019 at 13:25:21 UTC, Alex wrote: On Thursday, 31 January 2019 at 13:18:39 UTC, Langer wrote: Hi all, Ditto... something like: filter!((a,b) => a.foo != b.foo) Thank you! but... why not ´´´ arr.uniq ´´´ thank you, uniq is perfect.

Filter out consecutive elements based on comparison between adiacent two

2019-01-31 Thread Langer via Digitalmars-d-learn
Hi all, Ditto... something like: filter!((a,b) => a.foo != b.foo) Thank you!