doctrine/collections — pull request #38 by c960657 (2014-08-08 16:06:27+00:00)
Title: Add Collection::previous()

For symmetry with Collection::next() I suggest adding a new method, Collection::previous().

Some iterators may be optimized against iterating over the elements one by one using next(). However, the Collection interface otherwise assumes that the collection is random-access, so implementing the new previous() method should not be difficult.