IT Nursery
I’m trying to get my head around mutable vs immutable objects. Using mutable objects gets a lot of bad press (e.g. returning an array of strings from a method)...
  • June 3, 2022
  • 0 Comments
IT Nursery
I’m confused on what an immutable type is. I know the float object is considered to be immutable, with this type of example from my book: class RoundFloat(float): def...
  • May 30, 2022
  • 0 Comments
I seem to be having issues pushing data into a state array. I am trying to achieve it this way: this.setState({ myArray: this.state.myArray.push('new value') }) But I believe this...
  • May 25, 2022
  • 0 Comments