Top "Immutability" questions

Immutability is the inability to modify data after it has been created.

Pandas: Modify a particular level of Multiindex

I have a dataframe with Multiindex and would like to modify one particular level of the Multiindex. For instance, the …

python pandas immutability multi-index
How do I identify immutable objects in Java

In my code, I am creating a collection of objects which will be accessed by various threads in a fashion …

java functional-programming immutability
Are strings mutable in Ruby?

Are Strings mutable in Ruby? According to the documentation doing str = "hello" str = str + " world" creates a new string object …

ruby string immutability mutable
How to get union of several immutable.js Lists

So, I have List a: let a = Immutable.List([1]) and List b: let b = Immutable.List([2, 3]) I want to get …

javascript node.js list immutability immutable.js
How do I create a Vec from a range and shuffle it?

I have the following code: extern crate rand; use rand::{thread_rng, Rng}; fn main() { let mut vec: Vec<…

iterator immutability rust mutability
Why are C# structs immutable?

I was just curious to know why structs, strings etc are immutable? What is the reason for making them immutable …

c# .net immutability
Why does C# disallow readonly local variables?

Having a friendly debate with a co-worker about this. We have some thoughts about this, but wondering what the SO …

c# immutability language-design readonly
How to make a copy of a reference type

Possible Duplicate: Cloning objects in C# I have a class with properties and some of them are reference types (instances …

c# immutability reference-type
Why are Java wrapper classes immutable?

I know the usual reasons that apply to general immutable classes, viz can not change as a side effect easy …

java immutability mutable primitive-types
Sorting by alphabetical order immutable.js

I would like to sort immutable.js orderedList by property name, data.map(x => x.get("name")) returns the …

javascript immutability immutable.js