1.9 ã§ã¯ Enumerator ãçµã¿è¾¼ã¿ã«ãªãã大ããæ¡å¼µããã¦ãã¾ããã¤ãã§ã«ãããã¯ã®çç¥ã«å¯¾ããèãæ¹ã«ãå½±é¿ãããã¾ããçµæ§é大ãªå¤æ´ã®ããã«ããã®è©±ã¯ãã¾ãè°è«ãå¨ç¥ãããã¦ããªããããªæ°ãããã®ã§ãç¾ç¶ã® Enumerator ã«ã¤ãã¦ããã®æ©è½ã¨åé¡ç¹ãã¾ã¨ãã¦ã¿ã¾ããã Enumerator ã®æ©è½ ã¾ããeach ã map ãªã©ãã¤ãã¬ã¼ã¿ã£ã½ãã¡ã½ããããããã¯ãªãã§å¼ã³åºã㨠Enumerator ãå¾ããã¾ãã p [1,2,3].each #=> #<Enumerable::Enumerator:0xb7d38260> p [1,2,3].map #=> #<Enumerable::Enumerator:0xb7d38210> Object#to_enum ã¾ã㯠enum_for ã使ã£ã¦ãæå®ããã¡ã½ããã«ãã Enumerator ãæ示çã«ä½ããã¨
{{#tags}}- {{label}}
{{/tags}}