$ raku -e 'my @a = 1,2,3,6,7,1,2,8; @a .= unique; say @a'
[1 2 3 6 7 8]

https://docs.raku.org/type/Any#method_unique

> On 6 May 2024, at 04:35, ToddAndMargo via perl6-users <perl6-us...@perl.org> 
> wrote:
> 
> Hi All,
> 
> I have thought of how to do it and pretty sure
> it would work, but just in case Raku have one
> of those sweet utilities, does Raku have a
> utility that will take an array and remove all
> the duplicates and rearrange the cells back
> in order?
> 
> Many thanks,
> -T
> 
> 

Reply via email to