2
的東西Matlab和R都具有自動分配給(Ans和Last.value)的變量。Julia是否具有相當於Ans(Matlab)或Last.value(R)
Julia有沒有等價物?
例如
function myBigSlowFunc()
sleep(10)
return(5)
end
myBigSlowFunc()
# Can I get the value that was returned without rerunning the function?
如果你在你可以使用REPL'ans'(就像MATLAB) – spencerlyon2
真棒。這樣可行。 (我錯誤地嘗試「Ans」而不是「ans」) –