Course · Section 10: A Closer Look at Functions · Lecture 137: First-Class and Higher-Order Functions
Implement `filterBy(nums, kind)` returning the numbers matching the predicate named by `kind`: `even`, `odd`, or `positive`.
+ 1 hidden test run on Submit.
Selecting a predicate from a map and passing it to filter shows functions used as values.
Run your code to see results.