Skip to main content

New answers tagged

1 vote
Accepted

Need help to understand subtle difference using Replace in Association

The problem is that Map doesn't care about arithmetic rules. Consider this: fun /@ (2 x) // FullForm (* fun[2]*fun[x] *) So, ...
lericr's user avatar
  • 29.1k
1 vote

Need help to understand subtle difference using Replace in Association

Association has the attribute "HoldAll". Therefore, if you want to evaluate the replacement, you need "Evaluate" like: ...
Daniel Huber's user avatar
  • 52.7k

Top 50 recent answers are included