|
|
|
|
|
by _lce0
3275 days ago
|
|
Mathematically a Function is a Relation that has two special properties: uniqueness and existence. (these properties names can be wrong as I've not study calculus in English) So on the machine, Immutability plays an important role on the first piece, uniqueness, so it tries to guarantee that results are not just "equal objects, but different instances", which breaks the function definition. Of course that functions that return a new object for the same arguments, even if it's immutable, are not true math functions. |
|