Filter out consecutive elements based on comparison between adiacent two

Langer Langer at gmail.org
Thu Jan 31 14:32:16 UTC 2019


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.


More information about the Digitalmars-d-learn mailing list