Skip to content

Instantly share code, notes, and snippets.

@porterjamesj
Last active December 21, 2015 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save porterjamesj/6224186 to your computer and use it in GitHub Desktop.
Save porterjamesj/6224186 to your computer and use it in GitHub Desktop.
julia> a = function(x)
x[1] = 0
end
# function
julia> x = [3,3]
2-element Int64 Array:
3
3
julia> a(x)
0
julia> x
2-element Int64 Array:
0
3
julia> b = function(x)
x = 0
end
# function
julia> myn = 4
4
julia> b(myn)
0
julia> myn
4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment