If I have
{x->2,y->3,z->19}
and make many calculations and finaly get
First/@FactorInteger[57]
{3, 19}
how can I apply the inversed rules to get
{y,z}
without using
/.{2->x,3->y,19->z}
{3, 19} /. Map[Reverse, {x -> 2, y -> 3, z -> 19}]
Reverse[rules, {2}]
Reverse/@ruleList
{3, 19} /. Map[Reverse, {x -> 2, y -> 3, z -> 19}]work? – J. M.'s missing motivation May 11 '17 at 00:48Reverse[rules, {2}]– Coolwater May 11 '17 at 04:20Reverse/@ruleList– lineage Oct 16 '21 at 01:10