Immutable

In pure functional programming, everything is immutable. Strings, lists, values of customised types etc cannot be changed once be…