From: dorianmariefr Date: 2022-11-24T09:16:43+00:00 Subject: [ruby-core:110872] [Ruby master Feature#19128] Hash#delete could take a second argument as the default value? Issue #19128 has been updated by dorianmariefr (Dorian Mari��). You can close this, passing a block is much nicer and provides the functionality I need. As a side note, I think passing multiple arguments could delete multiple keys from the hash but I don't have the use for it. ---------------------------------------- Feature #19128: Hash#delete could take a second argument as the default value? https://bugs.ruby-lang.org/issues/19128#change-100230 * Author: dorianmariefr (Dorian Mari��) * Status: Open * Priority: Normal ---------------------------------------- e.g. `{}.delete(:a, [])` would return `[]` -- https://bugs.ruby-lang.org/ Unsubscribe: