Qurak

Handle code symbolically

ワークフロー 5 ステップを1つのセッション内で順に実行します。各ステップはエンジンで実行済みで、以下の出力は実際に生成されたものです。

ステップ 1
Inactive[Join][{1}, Reverse[{2, 4, 3}]]
出力
Inactive[Join][{1}, {3, 4, 2}]
ステップ 2
expr = Inactivate[Join[{1}, Reverse[{2, 4, 3}]]]
出力
Inactive[Join][{1}, Inactive[Reverse][{2, 4, 3}]]
ステップ 3
expr//InputForm
出力
InputForm[Inactive[Join][{1}, Inactive[Reverse][{2, 4, 3}]]]
ステップ 4
expr /. 1 -> 10
出力
Inactive[Join][{10}, Inactive[Reverse][{2, 4, 3}]]
ステップ 5
Activate[expr /. 1 -> 10]
出力
{10, 3, 4, 2}

使用する関数

関連レシピ

すべてのレシピ · 関数リファレンス · MCPクライアントから使う