Documentation for method hyper

Documentation for method hyper, assembled from the following types:

role Iterable

From Iterable

(Iterable) method hyper

Defined as:

method hyper(Int(Cool:$batch = 64Int(Cool:$degree = 4 --> Iterable)

NOTE: currently, this method is experimental

Returns another Iterable that is potentially iterated in parallel, with a given batch size and degree of parallelism.

The order of elements is preserved.

say ([1..100].hyper.map({ $_ +1 }).list);