We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
There are several ways to look up values in a map in Elixir (
%{a: "b"}
), given a single key or multiple keys. This article will make clear which ones are more suitable in which scenario, along with an anti-pattern sometimes seen in code.Keys are most typically atoms or strings, though the language does not restrict this. Anything can be a key in a map!
If you want to pick up idiomatic patterns in the language quickly by use case, this is the article for you.
continue reading on blog.puretype.ai
⚠️ This post links to an external website. ⚠️
If this post was enjoyable or useful for you, please share it! If you have comments, questions, or feedback, you can email my personal email. To get new posts, subscribe use the RSS feed.