An implementation of HOF in Monkey

let twice fn(f, x){
	return f(f(x));
};