Episode #459: Array Product

Sometimes when we're generating a data set, we need to get every combination of a few different sets. Like, say, one card each for 4 suits and 13 ranks. There's an a hard way and an easy way to do this in Ruby. Guess which way we're going to learn today?

This page is just for members. Sign in or subscribe to gain access!