For instance, given a numerical pattern, Perl 6 can intuit the next numbers in the series. The statement “(1,3,5,7….*)” will return a set of twenty odd numbers, starting at one. The statement “(1,2,4….*)” will return a sequence of successive numbers raised by the power of two, each a double of the number preceding it.

In an example given by Larry Wall at YAPC:: EU 2010, we can define the parameters of a sequence, as in the example (the Fibonacci sequence), written in Perl 6: