// èªåç¨ã¡ã¢ functionæã¨é¢æ°ãªãã©ã« ä¾ãã°ãx 㨠y ãå ç®ããçµæãè¿ãé¢æ° add ãå®ç¾©ããã¨ãããã function add(x,y) { return x + y } ããããfunctionæãã¨ãããSchemeã§ããã° (define (add x y) (+ x y)) ã«ç¸å½ã Schemeã«ããã¦ããã (define add (lambda (x y) (+ x y))) ã¨åçã§ããããã«ãJavaScriptã§ã var add = function(x,y) { return x + y } ã¨ããæ¸ãæ¹ãã§ãããSchemeã®lambdaå¼ã«ããããã®è¨æ³ããé¢æ°ãªãã©ã«ãã¨ãããvarã¯defineã«ç¸å½ã ããã§åé¡ã«ãªãã®ã¯ãfunctionæãé¢æ°ãªãã©ã«ã function [é¢æ°å] ([å¼æ°1[,å¼æ°2[,...]]]) {
{{#tags}}- {{label}}
{{/tags}}