[#92891] Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1? — Al Snow <jasnow@...>
Tried the new 2.7.0-preview1 upgrade to Ruby and see that bundler is also upgraded (to 2.1.0.pre.1).
5 messages
2019/05/30
[#92892] Re: Question: ruby 2.7.0-preview1 also upgrades bundler to 2.1.0.pre.1?
— SHIBATA Hiroshi <hsbt@...>
2019/05/30
Bundler 2.1.0.pree.1 is the expected version.
[ruby-core:92764] [Ruby trunk Feature#15323] [PATCH] Proposal: Add Enumerable#filter_map
From:
matz@...
Date:
2019-05-22 06:06:56 UTC
List:
ruby-core #92764
Issue #15323 has been updated by matz (Yukihiro Matsumoto).
I accepted the proposal at the last developer meeting but forgot to post here.
I do reject having both block and block argument at the same time. [ruby-core:92505]
Regarding `filter_map!`, submit a new proposal, if you really needed (with the use-case).
Matz.
----------------------------------------
Feature #15323: [PATCH] Proposal: Add Enumerable#filter_map
https://bugs.ruby-lang.org/issues/15323#change-78128
* Author: alfonsojimenez (Alfonso Jim駭ez)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
This is a proposal for a combined `filter` + `map` method (https://bugs.ruby-lang.org/issues/5663).
This method both filters and maps the elements of an enumerable in just one iteration:
~~~ ruby
(1..10).filter_map { |i| i * 2 if i.even? } #=> [4, 8, 12, 16, 20]
~~~
GitHub PR: https://github.com/ruby/ruby/pull/2017
---Files--------------------------------
0001-Adding-Enumerable-filter_map.patch (4.61 KB)
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>