Re: [julia-users] Initialization via ntuple()
See the open issue here: https://github.com/JuliaLang/julia/issues/11902 And Keno's PR here: https://github.com/JuliaLang/julia/pull/12113 TL;DR nothing like fill! yet for tuples, but planned/being worked on -Jacob On Wed, Jun 8, 2016 at 11:04 AM, Islam Badreldinwrote: > 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 >> 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 >>> >> >>
Re: [julia-users] Initialization via ntuple()
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> 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 >> > >
Re: [julia-users] Initialization via ntuple()
That looks right as far as I understand. -Jacob On Wed, Jun 8, 2016 at 8:42 AM, Islam Badreldinwrote: > 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 >
[julia-users] Initialization via ntuple()
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