Getting current context from within Package
问题 I had something like the following in my notebook. test1[g_] := (g == 5); test2[g_] := (g == 6); tests={"test1", "test2"} ToExpression[#][5] & /@ tests When I put this code in a package it doesn't work because test1 is now called MyPackage'Private'test1 . How can I modify the last line to make this code run both inside package and inside notebook? Update Here's why I was doing doing ToExpression as opposed to using Symbols. In retrospect, maybe it's easier to use Symbols instead I had a