Creating and applying function inline