For example, I have a list such as [2, 4, 7, 9, 6, 12, 38]. I want to firstly recognize each number by whether it is odd, then add 100 to each odd and 101 to each even,finally get two lists. There are 3 steps: 1. Number matching that it is odd or even 2. Add a proper decimal to each odd and even 3. Group to two list
In python, might need 3 minimal functions, but still how should we reach the goal by using Functional programming?