# P06 - Find out whether a list is a palindrome.

*Author: Ryan Connelly*

# Example

> say palindromic(<a b c d e>); False > say palindromic(<a b c b a>); True

Source code: P06-topo.pl

use v6; sub palindromic(@list) { @list ~~ @list.reverse.list; } say palindromic(<a b c d e>); say palindromic(<a b c b a>);