Add lists to end of lists?

I want to add each list to the end of each respective member of the first list

I want the results to look like this:
image

It has got to be simple, but I am not seeing the answer. Please help.
Add lists to end of lists.dyn (9.1 KB)

That’s it. Just Flatten the joined lists now.

Flatten 1 brings it all down to a single list. I can Chop 9 afterwards but that is not elegant.

Hi @truevis
?

1 Like

You would have to flatten with the appropriate list levels to maintain the overall list structure.

1 Like

That’s it. L3 is the level that does the trick.

or

DSCore.List.Flatten(DSCore.List.AddItemToEnd(a<1L>, b<1L>)@L3<1>, -1);

Cheers, @Nick_Boyts & @Kulkul