Explanation for Declaration and definition of anonymous function