Project

General

Profile

Actions

Feature #7739

open

Define Hash#| as Hash#reverse_merge in Rails

Added by alexeymuranov (Alexey Muranov) about 11 years ago. Updated over 6 years ago.

Status:
Assigned
Target version:
-
[ruby-core:51623]

Description

=begin
I suggest for to define (({Hash#|})) as (({Hash#reverse_merge})) in ((Rails)), in my opinion this would correspond nicely to (({Set#|})), to the logical (({#||})) and to the bitwise (({#|})):

{ :a => 1, :b => 2 } | { :b => 1, :c => 2 } # => { :a => 1, :b => 1, :c => 2 }
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0