|Subject:||Equivalent method for 'x' operator.|
Getting an array to repeat is confusing. @foo x 4 doesn't dwim, it's (@foo) x 4. A repeat() method for autoboxed scalars and arrays would be handy. Called on an array, it would repeat the whole array. Called on a scalar, it would repeat the scalar. [1, 2]->repeat(2); # (1, 2, 1, 2) \"foo"->repeat(2); # "foofoo" Similar issues with reverse().