Instances where we can curry and convert anonymous functions to sections are easy to find, for example from Exercise 5.5:
doubleEach'' :: [Int] -> [Int] doubleEach'' = map (*2) |
Instances where we can curry and convert anonymous functions to sections are easy to find, for example from Exercise 5.5:
doubleEach'' :: [Int] -> [Int] doubleEach'' = map (*2) |
“this chapter” meanss Chapter 9. So, backing Chapter 5 is not appropriate.
“twice” of Ex 9.7 can be written:
twice f = f.f