Update elixir

This commit is contained in:
Rico Sta. Cruz 2016-06-10 05:19:00 +08:00
parent ee3f72b9d1
commit 9f8369a4f7
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 5 additions and 1 deletions

View File

@ -236,7 +236,11 @@ tuple_size(tuple)
```elixir
list = [{ :name, "John" }, { :age, 15 }]
list.name
list[:name]
# For string-indexed keyword lists
list = [{"size", 2}, {"type", "shoe"}]
List.keyfind(list, "size", 0) #=> {"size", 2}
```
## Functions