P05 - Reverse a list.

Author: Ryan Connelly

Example

> say reverse-list(<a b c d e>);
e d c b a

Source code: P05-topo.pl

use v6;

sub reverse-list(@list)
{
    @list.reverse;
}

say "{reverse-list(<a b c d e>)}";