P03 - Find the kth element of a list.
Author: Ryan Connelly
Example
> say get-at(<a b c d e>, 4) e
Source code: P03-topo.pl
use v6; sub get-at(@list, $elem) { @list[$elem]; } say get-at(<a b c d e>, 4);
Author: Ryan Connelly
> say get-at(<a b c d e>, 4) e
Source code: P03-topo.pl
use v6; sub get-at(@list, $elem) { @list[$elem]; } say get-at(<a b c d e>, 4);