Am trying to merge two list in the order displayed below. Any help will be appreciated.
One of the possible way is to join both list then flatten then use List.Sort node and then List.Chop length by 5.
Using Python, option 1:
def MergeSort(lst1,lst2): MergedList= for index,i in enumerate(lst1): MergedList.append(i+lst2[index]) MergedList[index].sort() return MergedList OUT=MergeSort(IN,IN)
MergedList=[i+IN[index] for index,i in enumerate(IN)] for i in MergedList: i.sort() OUT=MergedList
I am having the same question about merging lists. Only my list does not consit of a,b,c,d or 1,2,3,4 but random values like d,y,h,w which can’t be sorted, because I need the original order - any ideas?
How would this work with 3 lists?