does Iterable does Sequence
An RaceSeq
is the intermediate object used when race
is invoked on a Seq
. In general, it's not intended for direct consumption by the developer.
Methods§
method iterator§
method iterator(RaceSeq: --> Iterator)
Returns the underlying iterator.
method grep§
method grep(RaceSeq: , *)
Applies grep
to the RaceSeq
similarly to how it would do it on a Seq
.
my = (^10000).map(*²).race;.grep( * %% 3 ).say;# OUTPUT: «(0 9 36 81 144 ...)»
When you use race
on a Seq
, this is the method that is actually called.
method map§
method map(RaceSeq: , *)
Uses maps on the RaceSeq
, generally created by application of .race
to a preexisting Seq
.
method invert§
method invert(RaceSeq:)
Inverts the RaceSeq
created from a Seq
by .race
.
method race§
method race(RaceSeq:)
Returns the object.
method hyper§
method hyper(RaceSeq:)
Creates a HyperSeq
object out of the current one.
method serial§
multi method serial(RaceSeq:)
Converts the object to a Seq
and returns it.
method is-lazy§
method is-lazy(--> False )
Returns False
.
method sink§
method sink(--> Nil)
Sinks the underlying data structure, producing any side effects.