ã対æ¯ããã¦ãã¾ãã [0,1,2,...,9]ã¯ããµããï¼ æ¬æ¸ã«å¯¾ããææ³ã¨ãã¦å¹¾ã¤ãè¦ããããã®ã«ããé¢æ°åã³ã¼ãã®[0,1,2,...,9]ã¨ããé åãªãã©ã«ãã¿æ¸ãã®æ¹ãå½ä»¤åã³ã¼ãããããµãã§ã¯ãªããï¼ãã¨ãããã®ãããã¾ããï¼0ã999ã¾ã§è¶³ãã¨è¨ããããã©ãããã¤ãããªã®ãï¼ï¼ãããããã¾ãã«0ã999ã¾ã§è¶³ãã«ã¯ã©ããããããã®ã ãããã¨ããåããæ¬æ¸ã®ç»å ´äººç©èªèº«ãåã(p. 45)ãé åãªãã©ã«ã§ã¯ãªãrangeé¢æ°ã使ã£ã¦é å[0..999]ãçæããã³ã¼ãä¾ã示ããã¾ã(p. 109)3ãã§ãã®ã§ãä½åº¦ãç¹°ãè¿ãããã³ã¼ãä¾[0,1,2,3,4,5,6,7,8,9].reduce(plus)ã®ããµãã¯æ¬æ¸ã«ã¨ã£ã¦æ¬è³ªçãªãã®ã§ã¯ããã¾ããã ãã ã容æã«äºæ³ã§ããåå¿ã§ãããã®ã§ãæåã«ãé åã¨ãã¦ä¸ãããããã¼ã¿[13, 5, -6, 34, 9, -17, 8
{{#tags}}- {{label}}
{{/tags}}