We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b02215 commit 2a5d205Copy full SHA for 2a5d205
gems/concurrent-ruby/1.1/_test/map.rb
@@ -15,3 +15,6 @@
15
16
map.compute_if_present(:maybe_present) { |old_value| old_value + 1 }
17
map.compute_if_present(:a) { |_old_value| nil }
18
+
19
+map.delete(:a)
20
+map.delete_pair(:b, 2)
gems/concurrent-ruby/1.1/map.rbs
@@ -48,6 +48,9 @@ module Concurrent
48
def marshal_dump: () -> Hash[K, V]
49
def marshal_load: (Hash[K, V] hash) -> self
50
51
+ def delete: (K key) -> V?
52
+ def delete_pair: (K key, V value) -> bool
53
54
# undef :freeze
55
56
def inspect: () -> String
0 commit comments