Qurak

OptionsPattern

در دسترس

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

موضوع‌ها

مرتبط

همهٔ 6300 تابع · استفاده از این در کلاینت MCP