How to get uniq to return an array?

maarten van damme via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 4 04:10:40 PDT 2017


have you tried std.range's .array?

2017-07-04 13:00 GMT+02:00 PumpkinCake via Digitalmars-d-learn <
digitalmars-d-learn at puremagic.com>:

> I'm trying to strip repeated values out of an int array using uniq. It's
> returning a UniqResult which can't be accessed like an array... how can I
> get it to return an array, or cast whatever it is returning to be an array?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20170704/e1b7c157/attachment.html>


More information about the Digitalmars-d-learn mailing list