Insert Multiple Items in a List of Lists

Hello there,
I have been trying for 4 hours now to use the insert node. Uploading a .dyn file and an image to illustrate my issue.
At this point I am a bit tired and disappointed that I can’t get it to work and am thinking about giving up on this.
Any help is appreciated.

List Insertion Example.dyn (62.1 KB)
Thanks

I usually reach for Python for this sort of thing:

lists = IN[0]
values = IN[1]
indexes = IN[2]

out = []
for list, value, index in zip(lists, values, indexes):
	for v, i in zip(value, index):
		list.insert(i,v)
	out.append(list)
OUT = out

Hope this helps,
Thomas

3 Likes

Yes, this solves it. Thanks.