Actions
Feature #8458
closed
Array#merge/merge!
Status:
Rejected
Assignee:
-
Target version:
-
Description
Very simple method can be defined:
class Array
def merge! other
require 'active_support/all' # can't use #tap, see #8457
tail = extract_options!
other_tail = other.extract_options!
concat( other ) << tail.update( other_tail )
end
end
When pondering about where this method should dwell, it seemed to me, perhaps in the core itself? Am I deluding myself?
Actions
Like0
Like0Like0