You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The arguments to pairs are passed as a hash. Hence, we're supplying two different values for the ":key" hash key, so Ruby silently ignores the first one (k1), taking only the second. Easy to fix (e.g., reverse the join operands), but certainly surprising behavior.