Pure Functional Programming
Pure Functional Programming
复制标题
纯函数式编程
DOI:
--
复制
发表时间:
2017
期刊:
影响因子:
--
通讯作者:
T. Mailund
中科院分区:
文献类型:
--
作者:
T. Mailund
A pure function is a function that behaves like a mathematical function: it maps values from one space to another, the same value always maps to the same result, and there is no such thing as a side effect in a mathematical function. The level to which programming languages go to ensure that functions are pure varies, and R does precious little in this regard. Because values are immutable, you have some guarantee about which side effects functions can have, but not much. You can ensure it through careful programming, however.