Pure function

From CS 61A Wiki
Revision as of 15:57, 25 May 2014 by Axis (Talk | contribs)


Jump to: navigation, search

A pure function produces no effects other than returning a value. Given the same arguments, it returns the same value. An example is the add function.

Sources