åãã¦ã®äººã®ããã®LISP[å¢è£æ¹è¨ç]ã®ã¡ã¢ã§ãã æå:åãã¦ã®äººã®ããã®LISP (第1è¬-第5è¬) - ããã«ã丼ã§ããã㪠é¢æ°å¼æ°ã®åºæ¬ã¯apply applyã®ç¬¬1å¼æ°ã¯é¢æ°ã§ã第2å¼æ°ããã®é¢æ°ã®å¼æ°ã®ãªã¹ã(第11è¬)ã æ°å¤ã ããå ¥ã£ããªã¹ãã®ç·åãè¨ç®ããã (setq x '(1 2 3 4 5 6)) (apply '+ x) ; => 21 funcall funcallã使ãã¨å¼æ°ããªã¹ãã«ããªãã¦ãããã (funcall '+ 1 2 3 4 5 6) ; => 21 mapcar mapcaré¢æ°ã¯ãªã¹ãã®åã ã®è¦ç´ ã«é¢æ°ãapplyããçµæããªã¹ãã¨ãã¦è¿ãã (setq x '(1 2 3 4 5)) (mapcar (lambda (x) (* x x)) x) ; => (1 4 9 16 25) å®ç¾© (defun mapcar (fn mli
{{#tags}}- {{label}}
{{/tags}}