method push-all

Documentation for method push-all assembled from the following types:

role Iterator

From Iterator

(Iterator) method push-all

Defined as:

method push-all(Iterator:D: $target)

Should produce all elements from the iterator and push them to $target.

my @array;
say (1 .. 1000).iterator.push-all(@array); # All 1000 values are pushed 

The Iterator role implements this method in terms of push-at-least.