[#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@...
Issue #14618 has been reported by aycabta (aycabta .).
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:86138] [Ruby trunk Feature#4780] String#split with a block
From:
matz@...
Date:
2018-03-15 08:55:03 UTC
List:
ruby-core #86138
Issue #4780 has been updated by matz (Yukihiro Matsumoto).
Accepted.
Matz.
----------------------------------------
Feature #4780: String#split with a block
https://bugs.ruby-lang.org/issues/4780#change-71016
* Author: yimutang (Joey Zhou)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Target version:
----------------------------------------
Mentioned before, in another (rejected) issue thread: http://redmine.ruby-lang.org/issues/4615
There are a few methods, which return an array without a trailing block, or also can be iterated with a block.
Such as String#scan.
String#split has only one form:
str.split(pattern=$;, limit=0) -> array
Maybe add a iterative form, when with a block:
str.split(pattern=$;, limit=0) {|field| ... } -> str
If the string is very long, and I only need to play with the splitted string one by one, this will not create a useless expensive array.
Joey
--
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>