Menu
Home
People
Places
Arts
History
Plants & Animals
Science
Life & Culture
Technology
Reference.org
Pure function
open-in-new
In
computer programming
, a pure function is a
function
that has the following properties:
the function
return values
are
identical
for identical
arguments
(no variation with local
static variables
,
non-local variables
, mutable
reference arguments
or
input streams
, i.e.,
referential transparency
), and
the function has no
side effects
(no mutation of local static variables, non-local variables, mutable reference arguments or input/output streams).