Logo

Programming-Idioms

History of Idiom 51 > diff from v49 to v50

Edit summary for version 50 by programming-idioms.org:
Admin deletes impl 3015: See impl 229

Version 49

2020-07-05, 20:32:10

Version 50

2020-07-15, 23:17:50

Idiom #51 Check if map contains key

Determine whether map m contains an entry for key k

Idiom #51 Check if map contains key

Determine whether map m contains an entry for key k

Variables
m,k
Variables
m,k
Extra Keywords
table dictionary hash
Extra Keywords
table dictionary hash
Code
_, ok := m[key]