First list function uses `doc` but it seems like it should use `head`
Merge pull request #512 from greggman/first-list-function

First list function uses `doc` but it seems like it should use `head`