O'Reilly logo
  • Ryan Williams thinks this is interesting:

double taxRate = 0.09; Function<Double, Double> addTax = price -> price + price * taxRate; ... taxRate = 0.13;

From

Cover of Functional Programming in Java: How functional techniques improve your Java programs

Note

method variables need to be implicitly final if used within the Fn inside a method.