Issue #8838 has been updated by knu (Akinori MUSHA).

Category changed from misc to core
Status changed from Open to Assigned
Assignee changed from matz (Yukihiro Matsumoto) to knu (Akinori MUSHA)

=begin
[[DevelopersMeeting20130831Japan]]?????????????????OK???????????????????????????????????????????????
=end

----------------------------------------
Feature #8838: Enhancing Numeric#step
https://bugs.ruby-lang.org/issues/8838#change-41485

Author: knu (Akinori MUSHA)
Status: Assigned
Priority: Normal
Assignee: knu (Akinori MUSHA)
Category: core
Target version: current: 2.1.0


DevelopersMeeting20130831Japan???起票?????????

??????????3年??????? [ruby-dev:42194] ?????????????????????以??????容??????

> ???Numeric#step ????????張?????????????????
> 
> ??????? Numeric#step ??? limit ????????????????????????????????軽??
> ????????????????????????????????????????????Float::INFINITY ??????? 1/0.0
> ????????????渡?????????????????????????1?????????????????????
> ????????????????????????????????????件??????????????????????????????
> 
> ?????????????????(????)????????????????????????? limit ???????????????
> ?????????????????????????????????????????似?????????????????
> ???????????
> 
> 1.step {|i| ... } # i = 1, 2, 3, ...
> -1.step(by:-1) {|i| ... } # i = -1, -2, -3, ...
> 1.0.step(by: 0.1, to: 2.0).to_a # [1.0, 1.1, ..., 2.0] (??:𬡢깥??쵥???)
> 2.step(by:2).take(100) # [2, 4, 6, ..., 200]
> 
> 
> ????????????? by: ??? to: ????????????????????????????????
> 表????????読????????????????????????????????????????????????

????????????????[ruby-dev:42204]??????????????????????????????????OK??????
????????????????????????????????????????C API???設?????????????????????話???????????????

> ????????????step????????????張????????????????????????????????
> ??????????????????????????????????????????????????????????????????
> ???容???????????????????C API???????????????対???????
> ?????????????????

????????????????????????????????????尻???????????????????????????????


????????????3年??????Ruby 2.0?????????????????????????????????????
?????????C??????????????????destructure???????????????API?????????????????????

Enumerator??????Enumerator::Lazy??????????????????????軽????????????
????????????????????????????????????? Enumerator#with_index(n=0) ???使?????
??????????????????????????????????????? 1.upto(Float::INFINITY) ??????
???????????????????????????????????????????????

??????????API?????議??????????????????????????2.1???????????????????????
???????????????????????????



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