I agree that it is union that you want here, however, it is interesting to note
that Peter just recently implemented list concatenation using the & operator in
LCB. This might have been applicable if you were working with ordered
numerically indexed arrays. I’ve been thinking lately about comman
It will if you union both ways.
Bob S
On Aug 10, 2016, at 10:58 , Mike Bonner
mailto:bonnm...@gmail.com>> wrote:
Try union
union firstarray with secondarray
though if you have duplicate keys, the duplicate will not change the
current.
___
use-liveco
Try union
union firstarray with secondarray
though if you have duplicate keys, the duplicate will not change the
current. From the dictionary...
local tLeft, tRight put "green" into tLeft["color"] put "left" into tLeft[
"align"] put "blue" into tRight["color"] put "100" into tRight["width"]
union
> Matt Maier wrote:
> Is there a command to merge two array variables into one?
This works for me:
union array1 with array2 [recursively]
--
View this message in context:
http://runtime-revolution.278305.n4.nabble.com/put-one-array-after-another-tp4707393p4707398.html
Sent from the Revolutio
In other languages there is a concat function to join two arrays. It’s in the
glossary, but not there as a function.
> On Aug 10, 2016, at 5:41 PM, Matt Maier wrote:
>
> Is there a command to merge two array variables into one?
>
> Example:
>
> tFirstArray[tom] = mot
> tFirstArray[jane] = e
I don’t think append is a command, it is used when you open files to add new
data at the end of the file.
— open file myFilePath for append
Tore
> 10. aug. 2016 kl. 19.05 skrev Matt Maier :
>
> Thanks Tore, yeah that works. I was just curious if there was a way to do
> it directly. Anytime the
Thanks Tore, yeah that works. I was just curious if there was a way to do
it directly. Anytime the syntax is simpler there are fewer chances to make
a mistake.
I found "append" in the dictionary but it's not really documented and I
couldn't get a script to compile with it.
On Wed, Aug 10, 2016 at
You could try this, it works if the array is declared global or local, and
should work if the arrays are script local if both arrays are constructed
within the same handler
repeat for each key tKey in tSecondArray
put tSecondArray[tKey] into tFirstArray[tKey]
end repeat
Regards
Tore
> 10.
Is there a command to merge two array variables into one?
Example:
tFirstArray[tom] = mot
tFirstArray[jane] = enaj
tSecondArray[bill] = llib
tSecondArray[name] = eman
put tSecondArray after tFirstArray
tFirstArray[tom] = mot
tFirstArray[jane] = enaj
tFirstArray[bill] = llib
tFirstArray[name] =
I think the stuff I read about crash-only said that it's normally
implemented in a hierarchy. So you try to restart little processes. If they
come back up and work correctly then nothing else is affected. If they
don't, then you crash the larger process. And so on.
On Tue, Aug 9, 2016 at 3:27 PM,
10 matches
Mail list logo