Hello Liz,
I was indeed talking about the unshaped situation.
BTW. I am growing more and more fond of raku,
Thanks,
Theo
Elizabeth Mattijsen schreef op 2021-02-05 16:06:
On 5 Feb 2021, at 15:49, Theo van den Heuvel <vdheu...@heuvelhlt.nl>
wrote:
I cannot seem to find an idiomatic way to get the dimensions of a
multidimensional array,
other than by looking at the size of the first row and column, with
@m[0;*].elems and @m[*;0].elems.
Am I missing something in the docs?
If it's a shaped multidimensional array, you can call the .shape method
my @a[3;3;3];
dd @a.shape; # (3,3,3)
If it is not, then your workaround appears the way to do it.
--
Theo van den Heuvel