Can't figure out "union"
Posted: Tue Sep 21, 2010 9:46 pm
I am having no luck with the union command. The documentation says
Examples:
union monthlyPayments with quarterlyPayments
Use the union command to combine two arrays, eliminating duplicate elements
I know the variables, are arrays, but what do they actually look like? Can anyone give me a simple sample script I can copy and paste into, say, a button to put the get union of two arrays, just as an illustration? I tried with
union array with testArray
where array="a,b,c,d" and testArray="c,d,e,f", hoping that the union command put yield "a,b,c,d,e,f". Obviously I am way off. Thanks in advance.
Examples:
union monthlyPayments with quarterlyPayments
Use the union command to combine two arrays, eliminating duplicate elements
I know the variables, are arrays, but what do they actually look like? Can anyone give me a simple sample script I can copy and paste into, say, a button to put the get union of two arrays, just as an illustration? I tried with
union array with testArray
where array="a,b,c,d" and testArray="c,d,e,f", hoping that the union command put yield "a,b,c,d,e,f". Obviously I am way off. Thanks in advance.