Anonymous functions can be a smart way to handle quick data processing