ruby-changes:53734
From: knu <ko1@a...>
Date: Sat, 24 Nov 2018 17:38:41 +0900 (JST)
Subject: [ruby-changes:53734] knu:r65950 (trunk): Add entries regarding Enumerator::Chain to NEWS
knu 2018-11-24 17:38:36 +0900 (Sat, 24 Nov 2018) New Revision: 65950 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65950 Log: Add entries regarding Enumerator::Chain to NEWS Modified files: trunk/NEWS Index: NEWS =================================================================== --- NEWS (revision 65949) +++ NEWS (revision 65950) @@ -86,6 +86,12 @@ sufficient information, see the ChangeLo https://github.com/ruby/ruby/blob/trunk/NEWS#L86 [Enumerable] + [New methods] + + * Enumerable#chain returns an enumerator object that iterates over the + elements of the receiver and then those of each argument in sequence. + [Feature #15144] + [Modified methods] * Enumerable#to_h now maps elements to new keys and values by the block if @@ -95,6 +101,14 @@ sufficient information, see the ChangeLo https://github.com/ruby/ruby/blob/trunk/NEWS#L101 * Enumerable#filter is a new alias for Enumerable#select. [Feature #13784] +[Enumerator] + + [New methods] + + * Enumerator#+ returns an enumerator object that iterates over the + elements of the receiver and then those of the other operand. + [Feature #15144] + [Enumerator::ArithmeticSequence] * This is a new class to represent a generator of an arithmetic sequence, @@ -102,6 +116,12 @@ sufficient information, see the ChangeLo https://github.com/ruby/ruby/blob/trunk/NEWS#L116 for representing what is similar to Python's slice. You can get an instance of this class from Numeric#step and Range#step. +[Enumerator::Chain] + + * This is a new class to represent a chain of enumerables that works as a + single enumerator, generated by such methods as Enumerable#chain and + Enumerator#+. + [Enumerator::Lazy] [Aliased methods] -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/