Friday 22 April 2016

Julia: Reset the session


Use the command ‘workspace()’ to reset the session. Once you reset the session, all the variables are cleared.

julia> name="Krishna";

julia> age=26;

julia> name
"Krishna"

julia> age
26

julia> workspace()

julia> name
ERROR: UndefVarError: name not defined

julia> age
ERROR: UndefVarError: age not defined


Observe above snippet, when I tried to access the variables name, age after calling workspace() throws UndefVarError.


Previous                                                 Next                                                 Home

No comments:

Post a Comment