How to join two lists of lists of different lengths


#1

hello, how do you join two lists of lists of different lengths? I think I got this right, but something is not letting the conduit runs without fittings to show up as not “null” please advise.


#2

What is the result you’d want and why use the List.Combine node instead of the List.Create node.


#3

Because the fittings need to be joined into the correct sublist with the appropriate conduit. So that I get the elements in continuous conduit runs


#4

Errr, right.
So what exactly would you want as a result?


#5

I want what I have here, except if there is just one lone fitting or one lone conduit, that it lands in its own sublist. This is returning “null” if there is an absent counterpart to the joining.


#6


Like so?
Som nulls are still being created but everything is still preserved, and you can just clean the nulls out.


#7

If a comment solved your problem, please mark it as solution (and maye leave a like here and there).


#8

So did it work?


#9

Yeah, i had some lacing issues upstream of this that i had to work out first, but yeah, I got it to work using your method essentially. Thanks!