is there an elegant way of replacing the RHS of a rule with the value of some function of it. Say I have {{a -> 1.2}, {a -> 2.3}}
and I want to replace 1.2
with Sqrt[1.2]
and 2.3
with Sqrt[2.3]
? I know it can be done by pulling out the values, applying the function and building a new list of rules but this doesn't look very nice.
Thanks, Pete
MapAt[Sqrt, {{a -> 1.2}, {a -> 2.3}}, {;; , 1, 2}]
$\endgroup$