Is there a more concise way of achieving the following result (possibly without d |->)?
(d |-> (d@Exponent[#, Variables[expr]] &)) /@ {f1, f2}
{f1[Exponent[#1, Variables[expr]]] &,
f2[Exponent[#1, Variables[expr]]] &}
I tried to use Through but this gives me incorrect result - the & is in the wrong place in the output.
Through[{f1, f2}[Exponent[#, Variables[expr]] &]]
{f1[Exponent[#1, Variables[expr]] &],
f2[Exponent[#1, Variables[expr]] &]}
Comap. – Domen Mar 10 '24 at 19:16Comap[{f1, f2}, Exponent[#, Variables[expr]] &]output the requested output in 14.0.? – azerbajdzan Mar 10 '24 at 20:48f1/f2need to go inside the body of the function. – lericr Mar 10 '24 at 22:18Comapis experimental in version 14. Its behavior may change in future versions. – Edmund Mar 10 '24 at 23:29d |->form, but we can dodge any potential issues with a named function argument usingMapAt[#, Exponent[#, Variables[expr]] &, 1]& /@ {f1, f2}. – WReach Mar 11 '24 at 03:15