Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 7d9c16311e
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (12 sloc) 0.209 kB
#!/usr/bin/env perl6
use v6;
sub duplicate(@list)
{
@list.map({$_, $_});
}
say duplicate(<a b c c d e>.list);
=begin pod
=head1 NAME
P14 - Duplicate the elements in a list.
=end pod
# vim: ft=perl6
Jump to Line
Something went wrong with that request. Please try again.