ã¯ã¦ãªãªã³ã°ã® SICPã§å¦ã³ã¾ããã ã¨ããã®ã«åå ããã®ã§ã SICP ã«é¢ä¿ããããªãã¨ãæ¸ãã¦ã¿ã¾ãã SICP ã®ç¬¬ 1 ç« ã§ã å帰çããã»ã¹ã®æç¶ããå復çããã»ã¹ã«æ¸ãæããã¨ããåé¡ãåºã¦æ¥ã¾ããã ããã¯æ £ããã¨èªç¶ã«åºæ¥ãããã«ãªãã¾ãã ããã§åºã¦ããã®ãæ«å°¾å帰ã¨ãããã¯ããã¯ã§ãã ãããã å ´åã«ãã£ã¦ã¯æ«å°¾å帰ã«ããã®ãã¡ãã£ã¨é£ããå ´åãããã¾ãã ããããæã®ã¨ã£ã¦ããã®æ¹æ³ã¨ãã¦ã ç¶ç¶æ¸¡ãã¹ã¿ã¤ã«ã¨ããã®ãç´¹ä»ãã¾ãã ç°¡åãªæ¸ãæã æ°å¤ãããªããªã¹ããåãåã£ã¦ã ãã®è¦ç´ ã®åãè¿ã sum ã¨ããé¢æ°ãèãã¾ãã ã¾ãã æ®éã«å帰ã使ã£ã¦æ¸ãã¨ãããªé¢¨ã«ãªãã¨æãã¾ãã (define (sum l) (if (null? l) 0 (+ (car l) (sum (cdr l))))) ãããå復çããã»ã¹ã®é¢æ° sum-iter ã«æ¸ãæ
{{#tags}}- {{label}}
{{/tags}}