define builtin function to create lambdas