Qurak

Handle code symbolically

Workflow 5 steps, run in order in one session. Every step was executed against the engine and the output below is what it produced.

Step 1
Inactive[Join][{1}, Reverse[{2, 4, 3}]]
Output
Inactive[Join][{1}, {3, 4, 2}]
Step 2
expr = Inactivate[Join[{1}, Reverse[{2, 4, 3}]]]
Output
Inactive[Join][{1}, Inactive[Reverse][{2, 4, 3}]]
Step 3
expr//InputForm
Output
InputForm[Inactive[Join][{1}, Inactive[Reverse][{2, 4, 3}]]]
Step 4
expr /. 1 -> 10
Output
Inactive[Join][{10}, Inactive[Reverse][{2, 4, 3}]]
Step 5
Activate[expr /. 1 -> 10]
Output
{10, 3, 4, 2}

Functions used

Related recipes

All recipes · Function reference · Use this from an MCP client