[Edit] In each of the above solutions the “variable” is an “Any (evaluated)” a Reporter input type. This requires a grey ring around the variable when calling the function. You can also use the “Any (evaluated)” type, as I will use below (no grey ring).[end of Edit]
Generalization
One step beyond the “scale” block (which is similar to but for the specific mathematical operation) is:
Do you know the concept of the upvar formal parameters? Ad'hoc, local variable, which can be set inside the function but is visible to the outer world.
Maybe you already know how to do this and didn't for some reason, but instead of adding a loop arrow as title text I used the official loop arrow feature:
maybe This will work:
[scratchblocks]
run {{replace item (1) of [ v] with (variable)}@addInput::reporter grey} with input (listVar)::control
[/scratchblocks]
(Sorry for the weirdness with the ""span class". The forum is interpreting the image's scratchblocks as a mention.) Here are the scratchblocks:
run {{replace item (1) of [ v] with (variable)}@addInput::reporter grey} with input (listVar)::control