method sink-all

Documentation for method sink-all, assembled from the following types:

role Iterator

From Iterator

(Iterator) method sink-all

Defined as:

method sink-all(Iterator:D:)

Exhausts the iterator (while discarding generated elements) purely for the side effects of the iteration.

say (1 .. 1000).iterator.sink-all;