Generalized evaluation to work with a simple form of function closures.