/**
* Constructs a function that returns <tt>(int) Math.pow(a,b)</tt>.
* <tt>a</tt> is a variable, <tt>b</tt> is fixed.
*/
public static IntFunction pow(final int b) {
return new IntFunction() {
public final int apply(int a) { return (int) Math.pow(a,b); }
};
}