P04 - Find the number of elements in a list.

Author: Ryan Connelly

Example

> say get-num-elems();
5

Source code: P04-topo.pl

use v6;

sub get-num-elems(@list)
{
    @list.elems;
}

say get-num-elems();