On 1/21/2013 4:12 PM, dpb wrote: > On 1/20/2013 11:30 AM, Ehsan wrote: >> "james bejon" wrote in message <email@example.com>... >>> If you supply some code that generates the relevant data structure, >>> I'll happily have a go... >> > ... > > Lum.data=;
...Previous code elided for brevity to correct a syntax problem of concatenating a structure w/ an array... > > Salt to suit...
Concatenate the L and R arrays then create the structure in the end--
NB that if there are a large number and/or they are large, this will get slow as it grows. If you know the sizes a priori you can help by preallocating a large-enough array and populate it explicitly w/ ranges. Keeping the full sizes and then collapsing the null entries at the end before creating the structure may also be faster than doing each first; I've not tested that w/ any random data to see if can tell any significant difference.