The FP counterpart

In FP, functions can be substituted at will and, as such, there is no need to design for extensibility. Functionality requiring parameterization is naturally declared as such. Instead of inventing a concept of a virtual method and inheritance, one can rely on an existing, elementary concept--the higher-order function.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset