This tutorial explains about Julia Arrays with examples on

  • How to create and assign an Array value

Arrays are storage containers for collection of elements, The elements are ordered based on insertion.

Arrays can store any type of datatype and data inside an array can be mutated with operations such as change, delete, and add elements.

Elements in an array can be duplicates. and elements in the Array are retrieved using an index.

Julia Create and initialize an array

Syntax

array_variable=[value1,value2.... valuen]
array_variable=Array([value1,value2.... valuen])

array_variable=Array{datatype}([value1,value2.... valuen])

Array add elements examples

Array remove elements example