Timeline for Replacement inside held expression
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 3 at 13:58 | comment | added | rhennigan |
Note that you'll probably want Unevaluated[key] instead of key on the rhs to avoid evaluation leaks.
|
|
Sep 3 at 13:55 | comment | added | rhennigan |
You could use $ConditionHold here: Hold[ b, a + b ] /. key_ :> RuleCondition[ Lookup[ code, key, None, $ConditionHold ], KeyExistsQ[ code, key ] ]
|
|
Sep 22, 2022 at 12:31 | history | edited | swish | CC BY-SA 4.0 |
added 400 characters in body
|
Sep 22, 2022 at 12:20 | history | answered | swish | CC BY-SA 4.0 |