repeat([1, 2, 3], inner = [2])

On Jul 29, 2014, at 7:03 AM, Andrei Berceanu <[email protected]> wrote:

> Whats the easiest way of going from an array
>     [1,2,3] -> [1,1,2,2,3,3]
> i.e. repeating all elements 2 (or more generally, n) times?
> 
> A

Reply via email to