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