|
|
|
|
|
by valenterry
1216 days ago
|
|
Then you have not understand what (pure) functional programming is and how it works. I recommend you to have a look at Haskell, probably the most famous language for enforcing only pure functions in your program. And I took this example from Haskell. Here is a good starting point for this concrete example:
> https://stackoverflow.com/questions/59035420/understanding-p... Quote (from the course 'Haskell Fundamentals Part 1' mentioned in the post): > This example helps illustrate that putStrLn is not a function with side effects. The answers explain the concept quite well. |
|