How to take M things N at a time
<p>I have a list of 46 items.  Each has a number associated with it.  I want to pair these items up in a set of 23 pairs.  I want to evaluate a function over each set.  How do I generate such a set?</p>

<p>I can use the combinations function from itertools to produce all the 2-ples but I don't see how to generate all the sets of 23 pairs.  </p>

<p>How do I do this or is there sample code I can reference?</p>
