P04 - Find the number of elements in a list.
Author: Ryan Connelly
Example
> say get-num-elems(<a b c d e>); 5
Source code: P04-topo.pl
use v6; sub get-num-elems(@list) { @list.elems; } say get-num-elems(<a b c d e>);
Author: Ryan Connelly
> say get-num-elems(<a b c d e>); 5
Source code: P04-topo.pl
use v6; sub get-num-elems(@list) { @list.elems; } say get-num-elems(<a b c d e>);