Defined variables within a scope


#1

Hi,
I want to get the variables defined within the current scope. Is there a function that does it?

Thanks


#2

I don’t think there is. There is whos but that works at module scope. Note that there are very many variables defined in most scopes as Base, etc. have a ton (run whos(Base)), unless you have a scope nested in a baremodule.