From: Peter Szinek Date: 2007-01-26T20:42:30+09:00 Subject: Re: cartesian product of arrays Thomas Hafner wrote: > Hello, > > did I miss some standard library function? Anyway, then I'll do it on > my own: Cool! Just a suggestion: it is also possible to reopen Enumerable and put your code there - in this case, all enumerable types will have this functionality (e.g. Sets), not only Arrays. Also it is maybe more intuitive (for me at least) to write: first_ary.cartprod second_ary Best wishes, Peter __ http://www.rubyrailways.com