Comparison of programming languages (higher-order functions)