[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: User selectable lower array bound?



Marc Schellens <m_schellens@hotmail.com> writes:


> Ahem:
> 
> pro push,list,elem
> if n_elements(list) eq 0 then list=[elem] else list=[list, elem]
> end
> 
> cheers,
> marc

Won't work if elem is an array ;-( Which dimension do you append?
And if elem is a structure you will soon need something like
Relax_StructAssign...

Martin


-- 
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
[[ Dr. Martin Schultz   Max-Planck-Institut fuer Meteorologie    [[
[[                      Bundesstr. 55, 20146 Hamburg             [[
[[                      phone: +49 40 41173-308                  [[
[[                      fax:   +49 40 41173-298                  [[
[[ martin.schultz@dkrz.de                                        [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[