hyper
ErrorsCollection

hyper

Synthesised documentation from type/Iterable type/HyperSeq type/RaceSeq

From type/Iterable

See Original text in context

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

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);

Use hyper in situations where it is OK to do the processing of items in parallel, and the output order should be kept relative to the input order. See race for situations where items are processed in parallel and the output order does not matter.

From type/HyperSeq

See Original text in context

method hyper(HyperSeq:D:)

Returns the object.

From type/RaceSeq

See Original text in context

method hyper(RaceSeq:D:)

Creates a HyperSeq object out of the current one.