If it's a local function inside a function, it wouldn't take too much intelligence from a compiler to see that it's used exactly once. Furthermore, I don't think this is more true about lambdas than ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results