Distinguishing between lambda definition and runtime