Logo

Programming-Idioms

History of Idiom 51 > diff from v42 to v43

Edit summary for version 43 by CarlJ:
New Go implementation by user [CarlJ]

Version 42

2019-09-26, 18:31:08

Version 43

2019-09-26, 18:47:23

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
_, ok := m[key]