?????宴????? #4147 ?????贋?違???????障???????? (by Yoji Ojima)


>?????????т札??? naruse ????????? (IRC ???) 荐???c?????≪?ゃ????≪???с????????
>Enumerator ??ц???????????? API ?????????????????障???????ゃ?障?????
>
>  e = %(紊у?? 筝?? 絨??? ???).sample_each
>  e.each {|x| p x } #=> ??? 筝?? 紊у?? 絨???
>
>  e = %(紊у?? 筝?? 絨??? ???).sample_each(unique: false, weight: [1000, 100, 10, 1])
>  e.each {|x| p x } #=> 紊у?? 紊у?? 筝?? 紊у?? ...

??????????????????????????障?????
?????? sample_each.each ????????????紊?????с????????????罎?荐??????
----------------------------------------
http://redmine.ruby-lang.org/issues/show/4147

----------------------------------------
http://redmine.ruby-lang.org