Whether dealing cards to poker players or distributing requests to load-balanced nodes, sometimes you need to rotate repeatedly through the same list of objects. In this episode, we'll first look at a traditional, procedural approach. And then we'll explore a method from the Ruby standard library for concise, expressive, and flexible turn-taking.
This page is just for members. Sign in or subscribe to gain access!