é«éé¢æ°ã¨ã¯ãé«åº¦ã§é£è§£ãªé¢æ°ãã§ã¯ãªããåã«å¼æ°ã«é¢æ°ãã¨ããé¢æ°ã®ãã¨ã ãå¼æ°ã«é¢æ°ãã¨ãã¨ããã¨é£ãããã«è¦ãããã次㮠map ã¨ããé¢æ°ã®åä½ãè¦ã¦ã¿ãã¨ãçµæ§ããããããäºãåããã map é¢æ°ããããã¨ã¯ã[1,2,3,4]ãã®ãããªãªã¹ãã®åè¦ç´ ã®ããããã«åãæ¼ç®ãå ããæä½ã ãmap ã¯ç¬¬1å¼æ°ã¨ãã¦ãåè¦ç´ ã«å ãããæ¼ç®ã®é¢æ°ãã¨ãã第2å¼æ°ã«ãªã¹ããã¨ãããããããµãã«æç« ã§æ¸ãã¨ããããããããã¨ãã°ããªã¹ãã®è¦ç´ ããã¹ã¦2åã«ããããããªã¨ãã¯æ¬¡ã®ããã«ããã Main> map (* 2) [1,2,3,4,5] [2,4,6,8,10] ä¸ã®å¼ã§ã(*2) ã¨ããã®ããè¦ç´ ã2åã«ããã¨ããé¢æ°ã ãããã§ã¯ï¼ä¹ã«ãããã¨ãã¯ã©ãã ãããã Main> map (^ 2) [1,2,3,4,5] [1,4,9,16,25] ã®ãããªããæ¹ãã§ããããèªåã®é¢
{{#tags}}- {{label}}
{{/tags}}