Array length
To get the number of elements of an array in Raku you put the array in a coercing Numeric context, or call elems
on it.
Watch out for infinite/lazy arrays though. You can't get the length of those.
Last updated
To get the number of elements of an array in Raku you put the array in a coercing Numeric context, or call elems
on it.
Watch out for infinite/lazy arrays though. You can't get the length of those.
Last updated