In JavaScript this comes up all the time when navigating the DOM. In particular when trying to wade your way through a bunch of elements that don't have ids.
For example there was a question on SO regarding finding the first element of a table. It can involve a lot of loops or chained commands.