Title here
Summary here
Note that while vectors are different types than arrays, they are rendered similarly by println
.
When you run this Julia script, you should see output similar to the following:
In Julia, vectors are similar to slices in many ways. They are dynamic, resizable arrays. The main differences in this translation are:
Vector{T}
instead of []T
for type declarations.push!
instead of append
to add elements to a vector.cap
function; the capacity of a vector is always equal to its length.The concepts of slicing, multi-dimensional vectors, and vector operations are very similar between Go and Julia.