[ruby-core:75968] [Ruby trunk Feature#12333] `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments
From:
matz@...
Date:
2016-06-13 06:46:51 UTC
List:
ruby-core #75968
Issue #12333 has been updated by Yukihiro Matsumoto.
Approved. I want to
```
ar = [1]
ar.concat(ar, ar)
```
to result `[1,1,1]`.
Matz.
----------------------------------------
Feature #12333: `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments
https://bugs.ruby-lang.org/issues/12333#change-59160
* Author: Tsuyoshi Sawada
* Status: Open
* Priority: Normal
* Assignee:
----------------------------------------
I would like `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments
~~~ruby
s = ""
s.concat("a", "b", "c")
a.prepend("A", "B", "C")
s # => "ABCabc"
a = []
a.concat(["a"], ["b", "c"])
a # => ["a", "b", "c"]
~~~
---Files--------------------------------
multi_concat_prepend.patch (2.94 KB)
fixed_multi_concat_prepend.patch (3.14 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>