I realise that this question may have been asked many times before, but for this particular application using loops won't really work because I can't index into a set
What I'm looking to do is getting a set of possible unordered pairs from data in a hashset as efficiently as possible.
So if my hashset contained A, B, C, D , E Then the following combinations are possbile: AB, AC, AD, AE, BC, BD, BE, CD, CE, DE
What options do I have available to achieve this efficiently?
Any ideas would be greatly appreciated