A pure function is a function whose result depends only on its arguments and which changes nothing outside itself: no global variable, no attribute, no printing, no file.
sum, and the methods of a class are often written imperatively.Computer Science · Glossary
A pure function is a function whose result depends only on its arguments and which changes nothing outside itself: no global variable, no attribute, no printing, no file.
sum, and the methods of a class are often written imperatively.