Yes, see "Passing anonymous functions" in the style guide.