Skip to content

Instantly share code, notes, and snippets.

@BrooklinJazz
Created June 7, 2021 22:23
Show Gist options
  • Select an option

  • Save BrooklinJazz/ab8135bf5eb8bbf14cc3af44380d1315 to your computer and use it in GitHub Desktop.

Select an option

Save BrooklinJazz/ab8135bf5eb8bbf14cc3af44380d1315 to your computer and use it in GitHub Desktop.
Map get syntax
# with string syntax
map = %{"key" => "value"}
Map.get(map, "key") # value
# with atom syntax
map = %{key: "value"}
Map.get(map, :key) # value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment