Get a list of current variables in Julia Lang

前端 未结 5 1201
情书的邮戳
情书的邮戳 2020-12-29 18:07

I am new to Julia Lang. I am coming from the background of Matlab.

In Matlab, when pressing whos command I will get all variables in the current scope;

5条回答
  •  暖寄归人
    2020-12-29 18:12

    As of version 1.1 there is also the @locals macro

    The experimental macro Base.@locals returns a dictionary of current local variable names and values

    Release notes

提交回复
热议问题