Really more like a package sigil, which can be used as a module, class,
role, or type sigil.
: > X active repeat ???
: > XX active repeat ???
:
: Those two haven't been blessed, and, though I don't have the message,
: I think I remember Larry being a little hesitant about adding those.
The question is whether to treat the left arg the same way we treat
attribute defaults, with one free closure call. We could say that
{ rand 10 } x 100
{ rand 10 } xx 100
should just automatically call the closure on the left repeatedly. In
the rare, rare case that you want to actually replicate a closure, you'd
have to say
{ { rand 10 } } x 100
{ { rand 10 } } xx 100
Then we save two operators. We could also pass the counter in as $_:
{ foo($_) } xx 100; # call foo(0), foo(1)...foo(99)
Which means
@chars = { substr($x, $_, 1) } xx $x.chars;
would be a silly way to write a split ''.
Larry