P03 - Find the kth element of a list.

Author: Ryan Connelly

Example

> say get-at(, 4)
e

Source code: P03-topo.pl

use v6;

sub get-at(@list, $elem)
{
    @list[$elem];
}

say get-at(, 4);