Skip to content

Instantly share code, notes, and snippets.

# possible solution for http://www.ruby-forum.com/topic/145570#887369 by Sergio Bayona
require 'test/unit'
# precondition: to_combine is expected to be in the format given below
# to_combine = [ set1 , set2 , ... , setn ]
# set = { key => values }
# key = any object with hash and eql? methods
# values = [ obj1 , obj2 , ... , objn ]
# obj = any ruby object