Would it be OK to add a line or two of documentation to this method?  It's not obvious to me what all the `first` and `last` business is doing or why.