Chapter 9 – Functional Programming Practices – an Approach

  1. What is functional programming?

Functional programming is an approach to symbolic computation in the same way as we solve mathematical problems. Any functional programming is based on mathematical functions. Any functional programming style language works on solutions with two terms: what to solve and how to solve?

  1. What is referential transparency in functional programming?

In functional programs, once we define the variables, they do not change their value throughout the program. As functional programs do not have assignment statements, if we need to store value, there is no alternative; instead, we define new variables.

  1. What is Pure function?

The Pure functions are the ones that strengthen functional programming by saying that they are pure. These functions work on two conditions:

    • The end result/output will always remain the same for the provided parameters.
    • These will not impact the behavior of the program or the execution path of the application, even if they are being called a hundred times.
..................Content has been hidden....................

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