elixir-lang/elixir — pull request #611 by devinus (2012-10-31 18:04:59+00:00)
Title: Access protocol for all lists of tuples

This is incredibly useful for dealing with things like JSON.

For example, in my app I assumed this would work:

```elixir
rpc = JsonRpc[jsonrpc: json["jsonrpc"],
id: json["id"],
method: json["method"],
params: json["params"]]
```

Other possibilities:

```elixir
star_ratings = [{1.0, "★"}, {1.5, "★☆"}, {2.0, "★★"}]
star_ratings[1.5] #=> "★☆"
```