Logo

Programming-Idioms

History of Idiom 51 > diff from v47 to v48

Edit summary for version 48 by programming-idioms.org:
[Elixir] 404 elixir-lang.org -> hexdocs.pm

Version 47

2019-10-14, 12:25:13

Version 48

2020-05-10, 21:32:29

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
Variables
m,k
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
https://hexdocs.pm/elixir/Map.html#has_key?/2