Top "Immutability" questions

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

I need an immutable key-value structure that retains insertion order

I want to find something like ImmutableLinkedHashMap<> in Guava library. I need to use an immutable key-value data …

java guava immutability linkedhashmap
Are value types immutable by definition?

I frequently read that structs should be immutable - aren't they by definition? Do you consider int to be immutable? …

c# .net immutability value-type
How to use default value in the builder pattern if that value is not passed and also make thread safe?

I am trying to use Builder Pattern for my class.. Below is my Builder class which I have built by …

java thread-safety immutability builder-pattern
Ways to make a class immutable in Python

I'm doing some distributed computing in which several machines communicate under the assumption that they all have identical versions of …

python immutability metaclass
TypeScript return immutable/const/readonly Array

I want to have a function which returns an Array, but I want the returned Array to be readonly, so …

javascript typescript immutability readonly
Mutable objects and hashCode

Have the following class: public class Member { private int x; private long y; private double d; public Member(int x, …

java immutability hashcode hashset
why my redux state not updating

state not updating.when action is dispatched the state should update to isAuthenticated to true..but the state not updating..…

javascript reactjs redux immutability thunk
What is the difference between immutable and const variables in Rust?

I learned that if a variable is not explicitly declared mutable using mut, it becomes immutable (it cannot be changed …

rust constants immutability
Isn't Redux just glorified global state?

So I started learning React a week ago and I inevitably got to the problem of state and how components …

javascript reactjs state immutability redux
persistent vs immutable data structure

Is there any difference in a persistent and immutable data structure? Wikipedia refers to immutable data structure when discussing persistence …

data-structures immutability object-persistence