---
title: "Discussion on \"Exploring Immutable Arrays in Scala: A Deep Dive into Vectors\" | Hashnode"
description: "Discussion on \"Exploring Immutable Arrays in Scala: A Deep Dive into Vectors\". Scala Array is not located in the scala.collection.mutable package, however, they are in fact mutable\nval arr = Array(1,2,3)\narr(1) = 3\nprintln(arr.mkString(\",\")) // 1,3,3\n\nImmutable alternative to Scala Array is Scala Vector\nval arr = Vector(1,2,3)\n..."
url: "https://hashnode.com/posts/exploring-immutable-arrays-in-scala-a-deep-dive-into-vectors/64d6f63ce6d1c7e9bc7f7a08"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Exploring Immutable Arrays in Scala: A Deep Dive into Vectors](https://martianov.dev/exploring-immutable-arrays-in-scala-a-deep-dive-into-vectors?utm_source=hashnode&utm_medium=feed)

Scala Array is not located in the scala.collection.mutable package, however, they are in fact mutable val arr = Array(1,2,3) arr(1) = 3 println(arr.mkString(",")) // 1,3,3 Immutable alternative to Scala Array is Scala Vector val arr = Vector(1,2,3) ...

Aug 12, 2023 · 1 min read · martianov.dev  
Read the article

-   [#scala](https://hashnode.com/tag/scala)
-   [#immutability](https://hashnode.com/tag/immutability)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)

## Written by

[Maksim Martianov](https://hashnode.com/@martianov)

@martianov · Seattle, WA

  
[View profile](https://hashnode.com/@martianov)

SWE at Snowflake. Ex-SWE Twitter/X, Route4me

Staff Software Engineer at Snowflake. Expert in scalable architecture, cloud infra, and security. Passionate problem-solver and mentor.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
