Question: Though this vector is numeric, we can just as easily define a vector of strings, or even a vector of vectors. If the elements of
Though this vector is numeric, we can just as easily define a vector of strings, or even a vector of vectors. If the elements of a Vector have type then the vector has type Array Julia has a convenient type alias for onedimensional arrays called Vector, so Array is equivalent to Vector
We can create a vector by listing commaseparated elements between square brackets and :
Run
Revert
element Array Int:
Julia also doesn't mind if we use semicolons to separate elements rather than commas:
;;;;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
