Replacing -> with lambda