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 ەوە بەکاربهێنە