The List routine

Combined from primary sources listed below.

In class Any ( Type/Any )§

See primary docmentation in context for method List.

method List§

method List(--> List:D) is nodal

Coerces the invocant to List, using the list method.

In class Array ( Type/Array )§

See primary docmentation in context for method List.

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.

In class Slip ( Type/Slip )§

See primary docmentation in context for method List.

method List§

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

Turns it into a list.

In class IterationBuffer ( Type/IterationBuffer )§

See primary docmentation in context for method List.

method List§

method List(IterationBuffer:D: --> List:D)

Coerces the IterationBuffer to a List.