Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7d9c16311e
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (17 sloc) 0.512 kb
use v6;
# Specification:
# P05 - Reverse a list
# a. One line example
# <> used to create an array
# .reverse on the object to reverse the order
# .join called to present the data with a " "
# say displays the result
say <A B C D>.list.reverse.join(' ');
# b. Perl representation
# .perl serialises the data as perl representation (like Data::Dumper in perl5)
# .say to display the result (print with a new line)
<A B C D>.list.reverse.perl.say;
=begin pod
=head1 NAME
P05 - Reverse a list
=end pod
Jump to Line
Something went wrong with that request. Please try again.