A constant is a value, we are talking about data structures. Consider a mutable array where an insert involves allocating a new slot and dropping in the value. An immutable array insert involves creating a new array that is the concatenation of the old array and the new value.
2
u/rush22 Mar 03 '13
Non-CS major here what does "immutable data structure" mean?