Solved
Repeat values in an array
I have an array where I would like to replace the zero values with the previous non-zero value.
i.e. convert { 15, 0, 0, 23, 0, 0, 0 } to { 15, 15, 15, 23, 23, 23, 23 }
Any ideas?
I have an array where I would like to replace the zero values with the previous non-zero value.
i.e. convert { 15, 0, 0, 23, 0, 0, 0 } to { 15, 15, 15, 23, 23, 23, 23 }
Any ideas?
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.