On 6 May 2024, at 04:35, ToddAndMargo via perl6-users <perl6-users@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

On 5/6/24 01:59, Elizabeth Mattijsen wrote:
> $ 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
>

I knew there had to be something!   Thank you!

Reply via email to