Skip to content

Glossary: Algorithms Beyond the Basics in Go

Comma-ok

Also written: comma ok, comma-ok form

A Go form like `value, ok := m[key]` where `ok` says whether the key was in the map. It tells a stored 0 from a missing key.

Where the book teaches it

Related terms

Memo mapNil map