From: Marc-Andre Lafortune Date: 2010-04-01T00:11:02+09:00 Subject: [ruby-dev:40882] [Feature #2673] the length for an enumerator generated by Array#permutation and Array#combination チケット #2673 が更新されました。 (by Marc-Andre Lafortune) I just noticed this feature request. Sadly, google translate is terrible for Japanese. I wanted to propose that Enumerator had a #length/#size method that would return nil or the size of the enumeration, when known. My (unfinished) proposal was to allow a block though, so that the result would always be valid, even if the source object was modified. Object#to_enum would accept a block and use that to calculate the length. I would really appreciate if someone was kind enough to summarize the state of this request for the use of those of us not blessed with Japanese reading skills! ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2673 ---------------------------------------- http://redmine.ruby-lang.org