Functional programming functions - functional programming polymorphism

Functional programming functions - functional programming polymorphism

 

And saving the computational context special value calculation process

Save the computational context calculation process input and output of the calculated structure.

Save the context calculation process can be calculated and arrangement; (currying).

 

As a special function values ​​and configurations may be made thereto by a combination of a higher order function, transformation, and other operations currying;

 

As a function of the input and output: are inherently configurable, calculated structure.

It can be configured as an input parameter calculated context;

It is calculated after calculating the context of a fully configured directly calculated;

 

Normal function;

Parametric function (closure function);

Higher-order functions;

Return function (internal function);

 

 

Value of the function: function is referenced and other functions called;

Context functions: the function to provide the function context value (parameter) of.

 

Function: the value of the structure need to be evaluated initialized;

Function variables: the need for a second order initialized variables can be evaluated

1, the structure evaluation initialization; binding function;

2, evaluation context initialization; binding variable parameter;

 

As a function of parsing function return value

1, a variable-defined functions, the function returns a reference value;

2, the function of context initialization variables, evaluation performed;

 

Context parameter:

Internal function reference other functions, in part, by parameter initialization;

 

The compiler will all basic functions: whether it is internal or external to compile storage.

Functional programming variable is the same signature, irreplaceable function of different implementations.

 

Basic functions: a function of all functional programming immutable;

Combined function: the function bonded by the function immutable.

The combination of function call entry is still the basis function;

 

Functional programming polymorphism:

The same basic function and other functions of different combinations, have different forms of behavior.

Guess you like

Origin www.cnblogs.com/feng9exe/p/11365988.html