Using mental images in functional programming

Using a pure functional language, can any form of mental image or diagram help visualize recursion and develop continuation?

+3
source share
1 answer

First of all, consider this discussion.

As already mentioned, functional programming is already quite close to mathematical notation and can be well understood and controlled by symbolic mathematics . Diagrams in the sense of OO are often not needed, since they can model interactions of states that simply are not in FP.

, , . , .

map f [] = []
map f (x:xs) = (f x) : map f xs

!

, , , /, .. , , . , , . : arrows:

alt text

+5

Source: https://habr.com/ru/post/1786703/


All Articles