4 ms·
Actually, since the Perl 5 example doesn't chomp (remove newlines), the Raku version would need to be: my @output-array = lines(:!chomp).unique; where the
by lizmat 7y ago
Actually, since the Perl 5 example doesn't chomp (remove newlines), the Raku version would need to be:
my @output-array = lines(:!chomp).unique;
where the `:!chomp` is a named parameter representing a `False` value for the named parameter `chomp`. AKA, `chomp => False`.