I am a beginner. I have a function with one parameter and I would like to replace a list of values that have names. I would like a result so that the names are not lost.
values = {a-> 1, b-> 2};
If I ignore the names, I get what I want:
Evaluate[x/6 /.x -> {1, 2}]
(* {1/6, 1/3} *)
But I would like to get a result like:
{a -> 1/6, b -> 1/3}
Is it possible?
{}
button above the edit window. The edit window help button?
is useful for learning how to format your questions and answers. You may also find this meta Q&A helpful $\endgroup$