copy
copy(x)
Create a shallow copy of x
: the outer structure is copied, but not all internal values. For example, copying an array produces a new array with identically-same elements as the original.
Examples
julia> foo = [1,2,3,4,5];
julia> bar = copy(foo)
5-element Array{Int64,1}:
1
2
3
4
5
See Also
User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.