Project

General

Profile

Actions

Feature #17384

open

shorthand of Hash#merge

Added by tjdgnsqn133 (Kim Seonghoon) 9 months ago. Updated 9 months ago.

Status:
Feedback
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:101355]

Description

Hi, all.
When I used Hash#merge, I thought it is uncomfortable.

a = {k: 1}
b = {j: 2}
c = a.merge(b)

If hash provides + like array, so useful.


Related issues

Is duplicate of Ruby master - Feature #6225: Hash#+Rejectedmatz (Yukihiro Matsumoto)03/30/2012Actions
Actions

Also available in: Atom PDF