Documentation for infix xx, assembled from the following types:
multi sub infix:<xx>(, --> List)
Returns a list of
$a repeated and evaluated
$b times (
$b is coerced to Int). If
$b <= 0 , the empty list is returned.
The left-hand side is evaluated for each repetition, so
say [1, 2] xx 5;# OUTPUT: «([1 2] [1 2] [1 2] [1 2] [1 2])␤»
returns five distinct arrays (but with the same content each time), and
rand xx 3
returns three pseudo random numbers that are determined independently.
The right-hand side can be
*, in which case a lazy, infinite list is returned.