1
2
3
4
pools = {1 => [1,2,3], 2=> [3,4,5], 3=> [5,6,7]}
intersection = []
pools.each do |k,v|
...

Ruby Find the Intersection of Ar...

by AviFlombaum, July 31, 2008 21:28, 13 refactorings, tagged with arrays, hash, intersection

Find the intersection of ar...

Fafb062f6e8c394dd6b0689c13db2b88 Talk