2012å¹´01æ04æ¥21:00 ã«ãã´ãªLightweight Languages algorithm - mapBetween - é åã®é£æ¥ãã2é ã«ããããæ¼ç®ãæ½ããé å è¨èªãå¢ããããã£ãã®ã¨ãããããé¢æ°ã«ååãä»ãããã£ãã®ã¨ã§1 entryå²ããã¨ã«ãã¾ããã çå·®æ°å - ã¿ã¤ãã« é åã®é£æ¥ãã2é ã«ããããæ¼ç®ãæ½ããé åãå¾ãããã¤ã¾ãã f (+) [1,2,3,4,5] = [3,5,7,9] ã®ãã㪠f ã欲ããã åå ãã¡ããçå·®æ°åãä½ãã®ã«ããã®é¢æ°ã¯ä½¿ããã®ã§ããããã®ä¸è¬çã«ä½¿ããé¢æ°ã«ä½¿ãååã¨ãã¦ã¯ãã¾ãã«å±æçãã¨ãããã㧠mapBetween ã¨ãã¦ã¿ã¾ããã使ãã©ããã¯ããªãå¤ããã§ããåè¨èªã«æ¨æºè£ åããã¦ããªãã®ãã¡ãã£ã¨ä¸æè°ãªã»ã©ã JavaScriptã«ããå®è£ Array.prototype.mapã§æ» å¤ã«ä½¿ãããªã第
{{#tags}}- {{label}}
{{/tags}}