concept 7 need in category functional programming

appears as: 7 needs
Grokking Functional Programming

This is an excerpt from Manning's book Grokking Functional Programming.

Please think about both the new implementation of rankedWords and the API itself. What does the signature say? Is it self-documenting? How easy it is to figure out what’s going on inside your new version?

rankedWords(w => score(w) + bonus(w) - penalty(w), words) #A
List("java", "scala", "ada", "haskell", "rust"))