This language bar is your friend. Select your favorite languages!

Idiom #52 Check if map contains value

Determine whether map m contains an entry with value v, for some key.

Illustration
#Edit dateEdit SummaryEditor
👁 Δ 31 2019-10-14, 12:25 [Elixir] Dead link: play.elixirbyexample.com has been down for a while programming-idioms.org
👁 Δ 30 2019-09-27, 09:57 [PHP] Added demo, documentation URL, and defaulted to the 3rd parameter ancarda
👁 Δ 29 2019-09-27, 09:54 [PHP] Format code snippet to PSR-12 ancarda
👁 Δ 28 2019-09-26, 16:52 New Cpp implementation by user [ne9xt] ne9xt
👁 Δ 27 2019-09-26, 16:34 New Csharp implementation by user [csharp] csharp
👁 Δ 26 2019-07-03, 19:33 [Ruby] include? does not work like this for Hashes steenslag
👁 Δ 25 2019-02-02, 03:29 New Scala implementation by user [Debaran] Debaran
👁 Δ 24 2019-01-24, 09:48 New JS implementation by user [1.7.4] 1.7.4
👁 Δ 23 2016-11-29, 20:25 Linked to idiom #12 [Check if list contains a value] programming-idioms.org
👁 Δ 22 2016-10-07, 12:37 Updated picture URL by user [programming-idioms.org] programming-idioms.org
👁 Δ 21 2016-08-03, 16:13 [Go] Fixed return type. +DemoURL programming-idioms.org
👁 Δ 20 2016-06-13, 09:41 keywords: synonyms programming-idioms.org
👁 Δ 19 2016-03-28, 12:51 [PHP] add explaination
👁 Δ 18 2016-03-28, 12:50 [PHP] forgot php `$` variable sign
👁 Δ 17 2016-03-28, 12:37 New PHP implementation by user [Feifan]
👁 Δ 16 2016-02-18, 16:58
👁 Δ 15 2015-11-30, 12:37
👁 Δ 14 2015-10-29, 14:05
👁 Δ 13 2015-09-04, 22:00
👁 Δ 12 2015-09-04, 21:59
👁 Δ 11 2015-09-04, 12:17
👁 Δ 10 2015-09-03, 15:55
👁 Δ 9 2015-08-24, 00:20
👁 Δ 8 2015-08-22, 09:53
👁 Δ 7 2015-08-21, 19:11
👁 Δ 6 2015-08-21, 16:54
👁 Δ 5 2015-08-21, 16:54
👁 Δ 4 2015-08-20, 18:00
👁 Δ 3 2015-08-19, 17:53
👁 Δ 2 2015-07-31, 20:16
1 2015-05-06, 21:04