This is a page from my book, Functional Programming, Simplified
“The owls are not what they seem.”
Have you noticed that the Scaladoc for the
map method clearly shows that it takes a function?
But despite that, you can somehow pass it a method, and it still works, as shown in this code: