to-lambda converts code vectors to anonymous functions