string combinations

Posted by vbNewbie on Stack Overflow See other posts from Stack Overflow or by vbNewbie
Published on 2010-04-12T03:58:46Z Indexed on 2010/04/12 4:03 UTC
Read the original article Hit count: 238

Filed under:
|

I would like to generate a combination of words. For example if I had the following list: {cat, dog, horse, ape, hen, mouse} then the result would be n(n-1)/2 cat dog horse ape hen mouse (cat dog) (dog horse) (horse ape) (ape hen) (hen mouse) (cat dog horse) (dog horse ape) (horse ape hen) etc

Hope this makes sense...everything I found involves permutations

The list I have would be a 500 long

© Stack Overflow or respective owner

Related posts about visual

Related posts about visual-studio-2008