Tag Info

New answers tagged

1

Trick that I sometimes find useful is "inheriting" of default option value from another symbol using delayed rule like: optName :> OptionValue[anotherSymbol, optName] With f defined as: ClearAll[f]; Options[f] = {optA -> 1, optB -> 1, optC -> 1}; f[x_, opts : OptionsPattern[]] := OptionValue[{optA, optB, optC}] We can define g in following ...



Top 50 recent answers are included