summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-27 09:29:51 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-27 09:29:51 +0000
commit00e210909cd1a8b56d401ff29262bc1139ac0f14 (patch)
tree61936689824dce1688d699487960ae6414885d23 /NEWS
parent55702df2211363aae24f04d1c4e13888e72f3ac6 (diff)
NEWS: Add ArithmeticSequence related things
[ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS18
1 files changed, 18 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index a6ecd8f7f5..0d5371eb09 100644
--- a/NEWS
+++ b/NEWS
@@ -89,6 +89,13 @@ sufficient information, see the ChangeLog file or Redmine
* `Enumerable#filter` is a new alias for `Enumerable#select`.
[Feature #13784]
+* `Enumerator::ArithmeticSequence`
+
+ * This is a new class to represent a generator of an arithmetic sequence,
+ that is a number sequence defined by a common difference. It can be used
+ for representing what is similar to Python's slice. You can get an
+ instance of this class from `Numeric#step` and `Range#step`.
+
* `Enumerator::Lazy`
* Aliased methods:
@@ -181,6 +188,14 @@ sufficient information, see the ChangeLog file or Redmine
* `NameError#initialize` accepts `:receiver` option to set receiver
in Ruby code. [Feature #14313]
+* `Numeric`
+
+ * Incompatible changes:
+
+ * `Numeric#step` now returns an instance of
+ `Enumerator::ArithmeticSequence` class rather than one of
+ `Enumerator` class.
+
* `NoMethodError`
* New options:
@@ -207,6 +222,9 @@ sufficient information, see the ChangeLog file or Redmine
* `Range#===` now uses `#cover?` instead of `#include?` method.
[Feature #14575]
* `Range#cover?` now accepts Range object. [Feature #14473]
+ * `Range#step` now returns an instance of
+ `Enumerator::ArithmeticSequence` class rather than one of
+ `Enumerator` class.
* `RubyVM::AST`