Combined from primary sources listed below.
See primary docmentation in context for method List.
See primary docmentation in context for method List.
See primary docmentation in context for method List.
multi method List(Array:D:)
Converts the array to a List.
my @array= [1];
@array[3]=3;
say @array.List; # OUTPUT: «(1 Nil Nil 3)»
The holes will show up as Nil.
See primary docmentation in context for method List.