Is there an elegant way to turn a nested array of the form

```
[["a", 1], ["a", 2], [nil, 3], [nil, 4], ["b", 6], ["b", 8]]

```

into a hash of the form

```
{"a" => [1,2], nil => [3,4], "b" => [6,8]}

```