Using a more compact anonymous function syntax