Reputation: 2326
Matlab and R both have variables that are automatically assigned to the (Ans and Last.value respectively).
Is there an equivalent for Julia?
e.g.
function myBigSlowFunc()
sleep(10)
return(5)
end
myBigSlowFunc()
# Can I get the value that was returned without rerunning the function?
Upvotes: 2
Views: 204