Skip to content

Commit

Permalink
fixup! Keyword lists, maps, and dict
Browse files Browse the repository at this point in the history
  • Loading branch information
doomspork committed Jun 1, 2015
1 parent 285bc53 commit 593afc1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lessons/collections.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,11 @@ In Elixir, both keyword lists and maps implement the `Dict` module; as such they
The [`Dict` module](http://elixir-lang.org/docs/stable/elixir/#!Dict.html) provides a number of useful functions for interacting with, and manipulating, these dictionaries:

```elixir
# keyword lists
iex> Dict.put([foo: "bar"], :hello, "world")
[hello: "world", foo: "bar"]

# maps
iex> Dict.put(%{:foo => "bar"}, "hello", "world")
%{:foo => "bar", "hello" => "world"}

Expand Down

0 comments on commit 593afc1

Please sign in to comment.