Friday, 22 April 2016

Julia shell: get last computed value


Julia provides inbuilt variable ‘ans’, which refers the last computed value.

julia> 10+15;

julia> ans
25

julia> 10-1;

julia> ans
9


Previous                                                 Next                                                 Home

No comments:

Post a Comment