From: spinutids@... Date: 2016-05-03T08:08:36+00:00 Subject: [ruby-core:75319] [Ruby trunk Feature#12333] `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments Issue #12333 has been updated by Satoru Horie. File fixed_multi_concat_prepend.patch added I wrote another patch refined for a problem stated in a previous post. It behaves like below ~~~ ar = [1] ar.concat(ar, ar) #=> [1,1,1] str = "ab" str.concat(str, str) #=> "ababab" ~~~ ---------------------------------------- Feature #12333: `String#concat`, `Array#concat`, `String#prepend` to take multiple arguments https://bugs.ruby-lang.org/issues/12333#change-58447 * 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: