Julia有类似于Ans (Matlab)或Last的东西吗?值(R)

  • 本文关键字:类似于 Ans Matlab Julia Last julia
  • 更新时间 :
  • 英文 :


Matlab和R都有自动分配给(Ans和Last)的变量。值分别)。

对于Julia是否有等价的?

function myBigSlowFunc()
    sleep(10)
    return(5)
end
myBigSlowFunc()
# Can I get the value that was returned without rerunning the function?

如果您在repl,您可以使用ans(就像matlab)

最新更新