Top "Immutability" questions

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

Remove specific characters from a string in Python

I'm trying to remove specific characters from a string using Python. This is the code I'm using right now. Unfortunately …

python string immutability
Correct way to push into state array

I seem to be having issues pushing data into a state array. I am trying to achieve it this way: …

javascript reactjs immutability
String is immutable. What exactly is the meaning?

I wrote the following code on immutable Strings. public class ImmutableStrings { public static void main(String[] args) { testmethod(); } private static …

java string immutability
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
Const in JavaScript: when to use it and is it necessary?

I've recently come across the const keyword in JavaScript. From what I can tell, it is used to create immutable …

javascript node.js constants immutability
Set System.Drawing.Color values

Hi how to set R G B values in System.Drawing.Color.G ? which is like System.Drawing.Color.G=255; …

c# .net colors immutability system.drawing.color
What is meant by immutable?

This could be the dumbest question ever asked but I think it is quite confusing for a Java newbie. Can …

java string immutability
Java Immutable Collections

From Java 1.6 Collection Framework documentation: Collections that do not support any modification operations (such as add, remove and clear) are …

java collections immutability
Why are exclamation marks used in Ruby methods?

In Ruby some methods have a question mark (?) that ask a question like include? that ask if the object in …

ruby methods naming-conventions immutability
How do I delete specific characters from a particular String in Java?

For example I'm extracting a text String from a text file and I need those words to form an array. …

java string immutability