Map

fetch/2

fetch(map, key)

Fetches the value for a specific key in the given map by returning {:ok, value}.

If map doesn’t contain key, :error is returned.