Qurak

OptionsPattern

Disponibile

Pattern object that matches any sequence of options in function definitions

OptionsPattern[]
OptionsPattern[f]
OptionsPattern[{opt1 -> val1, opt2 -> val2, …}]
f[7, {a -> x, b -> y}] /. f[_, OptionsPattern[{}]] :> OptionValue[a] → f[7, {a -> x, b -> y}]

Argomenti

Correlate

Tutte le 6300 funzioni · Usa questo da un client MCP