The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use strict;
use warnings;
use Test::More tests => 3;

BEGIN { use_ok('List::Vectorize') }

my $x = ["a", "a", "b", "b", "c"];
my $y = unique($x);

is_deeply($y, ["a", "b", "c"]);

$x = ["b", "a", "b", "a", "c"];
$y = unique($x);
is_deeply($y, ["b", "a", "c"]);