SetDelayed
利用可能
Defines a delayed assignment that evaluates the RHS each time.
lhs := rhs
SetDelayed[h[x_], x^3]; h[4]
→ 64q[f_, s_] := Function[s, f]; q[s^2, s][4]
→ 16h[a_] := Function[y, a + y]; h[y]
→ Function[y$, y + y$]pair[{foo[a_, b_]}] := a + b; pair[{foo[3, 4]}]
→ 7edge[{f : foo[{lo_, hi_}, ___]}] := {f, lo, hi}; edge[{foo[{0, 1}, extra]}]
→ {foo[{0, 1}, extra], 0, 1}last[{foo[__, z_]}] := z; last[{foo[1, 2, 3]}]
→ 3 全 6300 関数 ·
MCPクライアントから使う