We are trying to concatenate two arrays, tried the concat, append to list w\\MNI

We are trying to concatenate two arrays, tried the concat, append to list w\\MNI, joinarray without success....is there an easy function to turn two lists {a,b,c} and {1,2,3} into {a1,b2,c3}? The arrays are multiples within CDT's and we're combining a text array with an integer array. Our concat & append to list arrays show results like {a123, b, ....}.....thanks for suggestions....

OriginalPostID-64631

OriginalPostID-64631

  Discussion posts and replies are publicly visible

Parents
  • Just paraphrasing what Siva has provided above.

    You will need two rules. First rule's definition will be ruleInput1 & ruleInput2, where ruleInput1 and ruleInput2 are single valued inputs. Let's call this rule Rule1.

    Your second rule will have the following definition - apply(rule!Rule1, merge(arrayInput1, arrayInput2). Let's call this rule Rule2

    arrayInput1 and arrayInput2 are the rule inputs and can accept multiple values.

    If arrayInput1 is {a,b,c} and arrayInput2 is {1, 2, 3}, calling Rule2(arraInput1, arrayInput2) should return a1,b2,c3
Reply
  • Just paraphrasing what Siva has provided above.

    You will need two rules. First rule's definition will be ruleInput1 & ruleInput2, where ruleInput1 and ruleInput2 are single valued inputs. Let's call this rule Rule1.

    Your second rule will have the following definition - apply(rule!Rule1, merge(arrayInput1, arrayInput2). Let's call this rule Rule2

    arrayInput1 and arrayInput2 are the rule inputs and can accept multiple values.

    If arrayInput1 is {a,b,c} and arrayInput2 is {1, 2, 3}, calling Rule2(arraInput1, arrayInput2) should return a1,b2,c3
Children