What are the rules to govern underscore to define anonymous function?

Simple rules to determine the scope of underscore: If the underscore is an argument to a method, then the scope will be outside that method, otherwise respective the rules below; If the underscore is inside an expression delimited by () or {}, the innermost such delimiter that contains the underscore will be used; All other … Read more