optimized inline lambda of let or named-let