Pure function

A pure function in [[programming]] is a function with the following properties:

  1. A pure function always produce the same outputs for the same inputs
  2. A pure function is immutable i.e. it will not affect any arguments or variables outside its scope