nice, ty!
btw, the manual at 
http://julia.readthedocs.org/en/latest/stdlib/linalg/#Base.repeat says
    repeat(*A*, *inner = Int*, []*outer = Int*[])
shouldn't that be
    repeat(*A*, *inner = Int*[], *outer = Int*[])
i.e isn't the comma in the wrong position?

On Tuesday, July 29, 2014 4:06:22 PM UTC+2, John Myles White wrote:
>
> repeat([1, 2, 3], inner = [2]) 
>
> On Jul 29, 2014, at 7:03 AM, Andrei Berceanu <[email protected] 
> <javascript:>> 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