# File cartesian_iterator.rb, line 3 def initialize(foo, bar) @lists = [] @tot_iter = 1 product!(foo) product!(bar) end