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
Try this! :
The first function is just something that shows you how to call the second function. It really depends on how you get your 500 list – you can copy and paste it over the animal names, or you can load a file with the words in it. If it doesn’t fit on one line you can try:
etc.
then