Skip to content

Commit 2186902

Browse files
Update README.md
1 parent b7a3d71 commit 2186902

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Common functions implemented using recursion
44

55
---
66

7+
### Implemented:
8+
9+
- map
10+
- filter
11+
- flatten
12+
- reverse
13+
14+
715
### How is the idea?
816

917
I tried to follow the haskell way, which is basically:
@@ -22,15 +30,10 @@ So, almost always we'll have:
2230
For empty list, we don't do anything. For the case of the list with elements, we separate into first element and the rest. We _do_ something to the first element, and call the recursion to complete rest. And voila!
2331

2432

25-
33+
![Map explained](https://raw.githubusercontent.com/alejandrosobko/recursive-javascript/main/map_explained.png)
2634
---
2735

28-
### Implemented:
2936

30-
- map
31-
- filter
32-
- flatten
33-
- reverse
3437

3538
### Suggestions?
3639

0 commit comments

Comments
 (0)