Skip to content

Instantly share code, notes, and snippets.

@nwalker
Created July 19, 2016 16:16
Show Gist options
  • Select an option

  • Save nwalker/d26254bab770bceafa8a8e1ac2b9258c to your computer and use it in GitHub Desktop.

Select an option

Save nwalker/d26254bab770bceafa8a8e1ac2b9258c to your computer and use it in GitHub Desktop.
iex(1)> a = [{"asd", 123}]
[{"asd", 123}]
iex(2)> a["asd"]
** (ArgumentError) the Access calls for keywords expect the key to be an atom, got: "asd"
(elixir) lib/access.ex:136: Access.fetch/2
(elixir) lib/access.ex:149: Access.get/3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment