A commutative function is a function that takes some inputs from a set and produces an output that does not depend on the ordering of the inputs.
For example, the binary operation is commutative, because The string concatenation function is not commutative, because .