[#85940] [Ruby trunk Bug#14578] Forking a child process inside of a mutex crashes the ruby interpreter — ben.govero@...
Issue #14578 has been reported by bengovero (Ben Govero).
3 messages
2018/03/05
[#86205] [Ruby trunk Feature#14618] Add display width method to String for CLI — aycabta@...
SXNzdWUgIzE0NjE4IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGF5Y2FidGEgKGF5Y2FidGEgLikuCgot
3 messages
2018/03/19
[#86366] Re: [ruby-cvs:70102] usa:r63008 (trunk): get rid of test error/failure on Windows introduced at r62955 — Eric Wong <normalperson@...>
usa@ruby-lang.org wrote:
3 messages
2018/03/28
[ruby-core:86247] [Ruby trunk Feature#14197] `Enumerable#{select, reject}` accept a pattern argument
From:
info@...
Date:
2018-03-21 15:49:12 UTC
List:
ruby-core #86247
Issue #14197 has been updated by xavriley (Xavier Riley).
This issue is also related https://bugs.ruby-lang.org/issues/9602
One interesting point there is the case where a pattern and a block are given:
~~~ ruby
%w{ant bear cat}.select(/bear/) {||x| x === "cat" }
~~~
This issue also applies to the implementation from the linked issue for `#all?(pattern)`but this is already implemented
~~~ ruby
>> %w{ant bear cat}.all?(String) {|x| x === Integer }
=> true
~~~
----------------------------------------
Feature #14197: `Enumerable#{select,reject}` accept a pattern argument
https://bugs.ruby-lang.org/issues/14197#change-71148
* Author: znz (Kazuhiro NISHIYAMA)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
`#all?`, `#any?`, `#none?`, and `#one?` accept a pattern argument since 2.5.0.
But `#select`, and `#reject` don't.
The features are exist as `#grep`, and `#grep_v`, but there are hard to remember for me when I use `#select`, or `#reject`.
So I want to write
```ruby
collection.reject(/re/)
```
instead of
```ruby
collection.reject {|item| /re/ =~ item }
```
nor
```ruby
collection.grep_v(/re/)
```
--
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>