Coding-dojo-1 is a project mainly written in ..., it's free.
Code made on dojo #1 of Frevo on Rails group.
Pernambuco Ruby Users Group
When: 2010-01-27 09:00 AM
Where: Centro de Informática (UFPE)
Given some lists, obtain their cartesian product*. For instance, for lists [1,2]
and [3,4,5]
, the result should be:
Set.new [[1,3], [1,4], [1,5], [2,3], [2,4], [2,5]]
See more examples on the test file.
*We called it permutation on code.