Optimize curried lambda syntax.