We're going to start this section on loops with one of the most primitive ways of iterating through a collection: the while loop.
The while loops are rarely used in Ruby development; however, they will offer a solid foundation for the other tools that we can use to work with sets of data. If you're coming from another programming language, you are most likely already familiar with the while loops.