Hi
i'd like to set a range of indices in a list with one constant value.
for example
if list = [ 1 2 3 4 5 6]
then
list(1..4,6) = 9
will change 'list' as so it now equals = [ 9 9 9 9 5 9]
i tried $list(1..4) = 9 but it only set the first index cell
how this action can be done ?
thanks,
i'd like to set a range of indices in a list with one constant value.
for example
if list = [ 1 2 3 4 5 6]
then
list(1..4,6) = 9
will change 'list' as so it now equals = [ 9 9 9 9 5 9]
i tried $list(1..4) = 9 but it only set the first index cell
how this action can be done ?
thanks,
Comment