Keyword.fetch/2
defmodule Keyword do
def fetch(keywords, key)
end
Fetches the value for a specific key
and returns it in a tuple.
If the key
does not exist, returns :error
.
defmodule Keyword do
def fetch(keywords, key)
end
Fetches the value for a specific key
and returns it in a tuple.
If the key
does not exist, returns :error
.