From: Intransition Date: 2011-12-26T23:48:08+09:00 Subject: Re: How to Combo ------=_Part_1773_178316.1324910885425 Content-Type: multipart/alternative; boundary="----=_Part_1774_10626746.1324910885426" ------=_Part_1774_10626746.1324910885426 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Monday, December 26, 2011 4:36:26 AM UTC-5, Brian Candler wrote: > > > Does some_method only accept exactly three arguments? > Is each argument an array of exactly two elements? > Yes, Good questions. I should have made it clear this was an arbitrary example and any number of arguments, each with any number of elements ought to work too. Thankfully, the simple solution, which I was pretty sure was there but couldn't recall, was presented: Ruby has Array#product. ------=_Part_1774_10626746.1324910885426 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit On Monday, December 26, 2011 4:36:26 AM UTC-5, Brian Candler wrote:

Does some_method only accept exactly three arguments?
Is each argument an array of exactly two elements?


Yes, Good questions. I should have made it clear this was an arbitrary example and any number of arguments, each with any number of elements ought to work too.

Thankfully, the simple solution, which I was pretty sure was there but couldn't recall, was presented: Ruby has Array#product.

------=_Part_1774_10626746.1324910885426-- ------=_Part_1773_178316.1324910885425--