Skip to content

Instantly share code, notes, and snippets.

@Tombarr
Created January 19, 2019 23:05
Show Gist options
  • Save Tombarr/d8da8c261f5fdefa16e8e06cf317b789 to your computer and use it in GitHub Desktop.
Save Tombarr/d8da8c261f5fdefa16e8e06cf317b789 to your computer and use it in GitHub Desktop.
Maps in Elixir
map = %{
:red => "blue",
1 => 2,
true => false
}
map[true] # false
map[:red] # "blue"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment