Logo

Programming-Idioms

History of Idiom 51 > diff from v46 to v47

Edit summary for version 47 by programming-idioms.org:
[Elixir] Dead link: play.elixirbyexample.com has been down for a while

Version 46

2019-09-30, 11:58:03

Version 47

2019-10-14, 12:25:13

Idiom #51 Check if map contains key

Determine whether map m contains an entry for key k

Illustration

Idiom #51 Check if map contains key

Determine whether map m contains an entry for key k

Illustration
Extra Keywords
table dictionary hash
Extra Keywords
table dictionary hash
Code
Map.has_key?(m, k)
Code
Map.has_key?(m, k)
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/Map.html#has_key?/2
Doc URL
http://elixir-lang.org/docs/v1.0/elixir/Map.html#has_key?/2
Demo URL
http://play.elixirbyexample.com/s/b2b044492c