Qurak

OptionsPattern

Tilgjengelig

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}]

Emner

Relatert

Alle 6300 funksjoner · Bruk dette fra en MCP-klient