Deviopath › Go

Comma-OK Lookup

Medium · Maps

Return "missing" when the key is absent, even if the stored value is "". That is the comma-ok form: v, ok := m[k].

Write Lookup(m, key).

Next: Table of Cases