Array Manipulation in Julia

Discover how to work with arrays in Julia, including adding elements and iterating through them.

Array Manipulation in Julia
Photo by Sigmund / Unsplash

Discover how to work with arrays in Julia, including adding elements and iterating through them.

fruits = ["apple", "banana", "cherry"]
push!(fruits, "orange")

println("Fruits:")
for fruit in fruits
    println(fruit)
end