Top "Mutable" questions

A mutable can be modified after it is created.

Loading a resource to a mutable bitmap

I am loading a bitmap from a resource like so: Bitmap mBackground = BitmapFactory.decodeResource(res,R.drawable.image); What I …

android bitmap out-of-memory android-canvas mutable
Which JavaScript Array functions are mutating?

I am writing an Array-derived class in JavaScript and need to know which functions to overload so that I can …

javascript arrays mutable
How to append or prepend on a Scala mutable.Seq

There's something I don't understand about Scala's collection.mutable.Seq. It describes the interface for all mutable sequences, yet I …

scala sequence scala-collections mutable
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
Are mutable hashmap keys a dangerous practice?

Is it bad practice to use mutable objects as Hashmap keys? What happens when you try to retrieve a value …

hash key hashmap hashcode mutable
How to use mutable collections in Scala

I think I may be failing to understand how mutable collections work. I would expect mutable collections to be affected …

scala collections mutable
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
scala append to a mutable LinkedList

Please check this import scala.collection.mutable.LinkedList var l = new LinkedList[String] l append LinkedList("abc", "asd") println(l) // …

scala collections mutable
Should mutexes be mutable?

Not sure if this is a style question, or something that has a hard rule... If I want to keep …

c++ mutex mutable
NSMutableDictionary: mutating method sent to immutable object

The following code is returning an exception with the following error message "mutating method sent to immutable object" when attempting …

ios objective-c nsuserdefaults nsmutabledictionary mutable