Hot answers tagged

1

Consider using strings: BeginPackage["foo`"]; Unprotect @@ Names["foo`*"]; ClearAll @@ Names["foo`*"]; f::usage = "sol=f[x,plist]"; Begin["`Private`"]; f[x_, plist_] := With[{y = Lookup[plist, "y"], z = Lookup[plist, "z"]}, x + y + z]; End[]; Protect @@ Names["foo`*"]; EndPackage[]; paramList = {"y" -> 1, "z" -> 2}; sol = foo`f[x, paramList] Or ...



Only top voted, non community-wiki answers of a minimum length are eligible