...
Notice in exercise #5 how the anonymous inner class new ! UnaryFun
inside of x_minus_y
is allowed to reference y in its computation? y is said to be in the closure of this anonymous inner class.
...
...
Notice in exercise #5 how the anonymous inner class new ! UnaryFun
inside of x_minus_y
is allowed to reference y in its computation? y is said to be in the closure of this anonymous inner class.
...