P05 - 反转列表。
作者:Ryan Connelly
示例
> say reverse-list(<a b c d e>); e d c b a
源代码: P05-topo.pl
use v6; sub reverse-list(@list) { @list.reverse; } say "{reverse-list(<a b c d e>)}";
作者:Ryan Connelly
> say reverse-list(<a b c d e>); e d c b a
源代码: P05-topo.pl
use v6; sub reverse-list(@list) { @list.reverse; } say "{reverse-list(<a b c d e>)}";