如何获得julia宏的帮助?

Mat*_*teo 3 macros julia

我想知道如何获得Julia宏的帮助或至少找到定义它的源文件.例如,我知道有一个宏@spawnat.但如果我尝试做

> julia> help( @spawnat )  
ErrorException("wrong number of arguments")
Run Code Online (Sandbox Code Playgroud)

要么

> help( spawnat ) 
ErrorException("spawnat not defined")
Run Code Online (Sandbox Code Playgroud)

这不是很好......

小智 5

把它放在引号中:

julia> help("@spawnat")
Run Code Online (Sandbox Code Playgroud)

给

Base.@spawnat()

Accepts two arguments, "p" and an expression, and runs the
expression asynchronously on processor "p", returning a
"RemoteRef" to the result.
Run Code Online (Sandbox Code Playgroud)

您可以获得有关帮助功能的帮助help(help).