class Concurrent::Map
def key(value)
-
(Object, nil)
- key or nil when not found
Parameters:
-
value
(Object
) --
def key(value) each_pair { |k, v| return k if v == value } nil end unless method_defined?(:key)
(Object, nil)
- key or nil when not found
value
(Object
)
--
def key(value) each_pair { |k, v| return k if v == value } nil end unless method_defined?(:key)