From: Nadim Kobeissi Date: 2008-05-04T21:50:33+09:00 Subject: Re: Array combination check Xavier Noria wrote: > What is a combination? Please allow me to make myself more clear: bunny=["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] cow="hello" I want to test all possible combinations of the items inside bunny (the alphabet) starting from the smallest to the biggest (a, then b, then c.. then aa, then ab, then ac, etc.) until I arrive to a case in which the combination == cow, which means the combination would be "hello". -- Posted via http://www.ruby-forum.com/.