Thanks! I was looking for something similar to fill() but for NTuple .. But I couldn't find any ..
-Islam On Wednesday, June 8, 2016 at 11:20:06 AM UTC-4, Jacob Quinn wrote: > That looks right as far as I understand. > > -Jacob > > On Wed, Jun 8, 2016 at 8:42 AM, Islam Badreldin <[email protected] > <javascript:>> wrote: > >> Hi >> >> What is the easiest way to initialize NTuple with some constant value? >> Currently I am using >> >> julia> y=ntuple(x->0.0,10) >> (0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0) >> >> >> Is this the only initialization option? >> >> Thanks, >> Islam >> > >
