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 · 术语表
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.