Qurak

Rule

Disponible, difiere de la referencia .wl

`Rule[a, b]` creates an immediate replacement rule (`a -> b`).

lhs -> rhs or lhs -> rhs
Rule[a, b] → a -> bRuleDelayed[x, Random[]] → x :> Random[]ToString[f[a -> 5 // Head], InputForm] → f[Rule]ToString[{a -> 5 /. 5 -> 6}, InputForm] → {a -> 6}ToString[(1 -> 2) /. Rule -> List, InputForm] → {1, 2}ToString[{a -> 1} /. Rule -> ff, InputForm] → {ff[a, 1]}

Usada en

Temas

Relacionadas

Las 6300 funciones · Usar esto desde un cliente MCP