Process jan's comments on higher-order functions