Documentation for routine prepend

Documentation for routine prepend, assembled from the following types:

class Any

From Any

(Any) method prepend

Defined As:

    method prepend(--> TODO)

TODO

class Array

From Array

(Array) method prepend

Defined as

sub prepend(\arrayelems)
multi method prepend(Array:D: \values)
multi method prepend(Array:D: **@values is raw)

Adds the elements from LIST to the front of the array, modifying it in-place.

Example:

my @foo = <a b c>;
@foo.prepend: 13 ... 11;
say @foo;                   # OUTPUT: «[1 3 5 7 9 11 a b c]␤» 

class Nil

From Nil

(Nil) method prepend

method prepend(*@)

Warns the user that they tried to prepend onto a Nil.