ã¿ã¤ãã«ã¯é£ãã§ããRuby ã«ç²ç®çã«æãã¦ããè¿çã«ã¯ Ruby ã®ççï¼ãã°ãï¼ã¯ã¨ã¯ãã§ãã ããã¯ã¨ãããã ã¡ã½ããåã®å¥åããããã ãããªã㯠map æ´¾ï¼ãããã¨ã collect æ´¾ï¼ãã£ã¦ããåããã¾ãå«ãã ããï¼å¥åã«ãæ義ãããã¨ã¯æããã ãã©ï¼è¨æ¶ã®è² æ ã大ããã èªåã§ã¯ map ãã使ããªãã¦ãï¼ä»äººã®ã³ã¼ãèªããã ã£ãã collect ãç¥ã£ã¦ããªãã¡ããªããªãã ãã°ããåã« reduce ã£ã¦ããã¡ã½ããè¦ã¦ï¼ãããªã®ãã£ãã£ãï¼ã¨æã£ãã inject ã®å¥åã ã£ãã map/collect 㨠inject/reduce ã®ååã¨ãã®èæ¯ã«ããçºæ³ã«ã¤ãã¦ã¯ï¼Rubyist Magazine ã«è¯ãè¨äºãããï¼ ãããã¨æãã°ï¼Array#delete_if 㨠Array#reject! ã¿ããã«ï¼åãã¯åºæ¬çã«åãã ãã©ï¼åé¤ãè¡ãããªãã£
{{#tags}}- {{label}}
{{/tags}}