OriginalPostID-88036
Discussion posts and replies are publicly visible
How to add an space between them, like the output looks like {"a 1", "b 2", "c 3“}
load( local!arr1: {"A","B","C","D"}, local!arr2: {"E","F","G","H"}, merge(local!arr1, local!arr2))
By doing this way the output will be of List of Variant - 4 items and each item will have list of strings with 2 items. example "A", "E". However if you want all 8 items in one list, you can use a!flatten function to your output, it will give you output as List of Text String - 8 items (A,E,B,F,C,G,D,H)
load( local!arr1: {"A","B","C","D"}, local!arr2: {"E","F","G","H"}, local!totalCount: length(local!arr1), local!countArray: enumerate(local!totalCount) +1, a!forEach( items: local!countArray, expression: local!arr1[fv!index] &" " & local!arr2[fv!index] ))
Above solution will give you the output as List of Text String - 4 items as {"A E", "B F", "C G", "D H" }.
Because of Appian Forums, I have decided the internet should add "Mummy Thread" to it's lingo.
Zombie threads are threads that have been brought back from the dead. Mummy threads have been brought back from the dead AND they are absolutely ancient.
Side note, this thread was started well before a!forEach() was available (which came out in 17.2 originally). The solution using a!forEach (see Ravi's suggestion above) is quite easy now; previously it required a complex arrangement of the apply(), concat() and merge() functions.