Add item to list by indices issue?


#1

Hello All, I have an issue with adding items to a list, at certain indices. Some how, I can only get the list.combine to add items per index !?

So, I wan’t to add the number sequence [0,0,0] to the indices [0,2,5] - by addition to the list of false values.
I have tried a lot of ways with only Insert by element and index, but thinking that list.combine can do it proper ?

Any suggestions on what i’m missing or doing wrong ?

Thanks in advance,


#2

Ok, so i solved the problem. I’m not proud of the solution, and still think that it must be possible to do it with some loop function ?

 

Solution: