lambda-calculus.js
function toFunction(term){
    return eval(transmogrify(
      function(varName, body){ return "(function("+varName+"){return "+body+"})"; },
      function(fun, arg){ return fun+"("+arg+")"; })
      (term));
  }
function toFunction(term){
    return eval(transmogrify(
      function(varName, body){ return "(function("+varName+"){return "+body+"})"; },
      function(fun, arg){ return fun+"("+arg+")"; })
      (term));
  }
function toFunction ( term ) { return eval ( transmogrify ( function ( varName , body ) { return "(function(" + varName + "){return " + body + "})" ; } , function ( fun , arg ) { return fun + "(" + arg + ")" ; } ) ( term ) ) ; }
Term -> String Converts a term to a native JS function.
Term - > String Converts a term to a native JS function .