Top "Mutable" questions

A mutable can be modified after it is created.

Immutable vs Mutable types

I'm confused on what an immutable type is. I know the float object is considered to be immutable, with this …

python immutability mutable
Does the 'mutable' keyword have any purpose other than allowing the variable to be modified by a const function?

A while ago I came across some code that marked a member variable of a class with the mutable keyword. …

c++ keyword mutable
What is difference between mutable and immutable String in java

As per my knowledge, a mutable string can be changed, and an immutable string cannot be changed. Here I want …

java string immutability mutable stringbuffer
What is the syntax for adding an element to a scala.collection.mutable.Map?

What is the syntax for adding an element to a scala.collection.mutable.Map ? Here are some failed attempts: val …

scala map add mutable put
Mutable vs immutable objects

I'm trying to get my head around mutable vs immutable objects. Using mutable objects gets a lot of bad press (…

oop immutability mutable
Immutable/Mutable Collections in Swift

I was referring to Apple's Swift programming guide for understanding creation of Mutable/ immutable objects(Array, Dictionary, Sets, Data) in …

ios objective-c swift immutability mutable
Why are mutable structs “evil”?

Following the discussions here on SO I already read several times the remark that mutable structs are “evil” (like in …

c# struct immutability mutable
Is Integer Immutable

I know this is probably very stupid, but a lot of places claim that the Integer class in Java is …

java immutability mutable
Converting mutable to immutable map

private[this]object MMMap extends HashMap[A, Set[B]] with MultiMap[A, B] How convert it to immutable?

scala immutability mutable scala-collections
Does Java have mutable types for Integer, Float, Double, Long?

I am in a situation where I want to use mutable versions of things like Integer. Do I have to …

java numbers integer mutable built-in