Higher-Order Functions
in Java
Functions as Objects?
Dynamic Creation
Function Objects
Example: map
Example: OpenList map
Specific case: square each element
Slight problem:
Remedy:
Java Interfaces
Java Keywords
map arguments, the right way
A map argument
Another map argument
Yet another
Number vs. Float and Integer
Restrictions on interfaces
Exercise