Imagine that you have a list like this one:
[0, 0, 0, 0, 0, 0]
And you want to add a number, lets say 5 but just between the positions 1 and 4, so the resulting array would be:
[0, 5, 5, 5, 5, 0]
Is there a way to use map to do this? Right now I'm using a for loop and range but find it a bit inefficient.
Thanks!