Update elixir
This commit is contained in:
parent
ee3f72b9d1
commit
9f8369a4f7
|
@ -236,7 +236,11 @@ tuple_size(tuple)
|
||||||
|
|
||||||
```elixir
|
```elixir
|
||||||
list = [{ :name, "John" }, { :age, 15 }]
|
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
|
## Functions
|
||||||
|
|
Loading…
Reference in New Issue