Issue #6428 has been updated by matz (Yukihiro Matsumoto).

Assignee set to nagachika (Tomoyuki Chikanaga)

????????????????????????????
----------------------------------------
Bug #6428: lazy???take/drop???2?force????????????????????
https://bugs.ruby-lang.org/issues/6428#change-26600

Author: nagachika (Tomoyuki Chikanaga)
Status: Open
Priority: Normal
Assignee: nagachika (Tomoyuki Chikanaga)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-05-12 trunk 35629) [x86_64-darwin10.8.0]


Enumerator::Lazy#take ??????? Enumerator::Lazy ??繰??????? force/to_a ?????????????????
2度?以?????????????????????????????

 $ cat lazy_take_recycle.rb
 lazy_take = (1..5).lazy.take(3)
 
 p lazy_take.force
 p lazy_take.force

 $ ruby lazy_take_recycle.rb
 [1, 2, 3]
 [1, 2, 3, 4, 5]

?????? Enumerator::Lazy ??? force ????????????????????使????????????????????????????????????????
?????????度???????????????????????????????????????????????????????????????????
2度?以??????????????????????????????????????????????添????????????
?????????????????????????????????????????????????????


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