List
ErrorsCollection

List

Synthesised documentation from type/Any type/Array type/Slip

From type/Any

See Original text in context

method List(--> List:Dis nodal

Coerces the invocant to Any, using the .list method.

From type/Array

See Original text in context

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.

From type/Slip

See Original text in context

multi method List(Slip:D: --> List:D)

Turns it into a list.