Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created September 22, 2016 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/1b7fcc19b265867739039aa0d18b2ef7 to your computer and use it in GitHub Desktop.
Save dogbert17/1b7fcc19b265867739039aa0d18b2ef7 to your computer and use it in GitHub Desktop.
Attempt to document Range.reverse
=head2 method reverse
method reverse(Range:D:) returns Seq:D
Returns a L<Seq> where all elements that the C<Range> represents have been
reversed.
say (1^..5).reverse; # (5 4 3 2)
say ('a'..'d').reverse; # (d c b a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment