Any reason not to use global lambdas?
stackoverflow.com