标签:
Every powerful language has three such mechanisms:
A critical aspect of a programming language is the means it provides for using names to refer to computational objects. If a value has been given a name, we say that the name binds to the value.
nested expression (嵌套表达式)
Pure function and Non-Pure functions
function abstraction (将计算过程抽象成函数)
To master the use of a functional abstraction, it is often useful to consider its three core attributes. The domain of a function is the set of arguments it can take. Therange of a function is the set of values it can return. The intent of a function is the relationship it computes between inputs and output (as well as any side effects it might generate)
Decomposing a complex task into concise functions
some ideas of good function:
Higher-order Functions
闭包(closure)
科里化(currying)
2015-07-18
1 Building Abstractions with Functions
标签:
原文地址:http://www.cnblogs.com/whuyt/p/4656296.html