I like to select elements in the range of (5 to 10) and range of (-5 to -10), replace all the selected with range of (1 to 3) and (-1 to -3) respectively.
You need to give some examples. I don’t understand what you are asking. For example, How do you know what to replace a value with if you are replacing 5 values in the range of 5 to 10 with 3 values in the range of 1 to 3?
Strange how it duplicated your post under my name…
What I posted was that you can certainly use Map[] to map a replacement function over your list with “rules” in it. or if your replacement is as simple as you indicate, you can just do: