Re: Newbie question: pairswise function
- To: mathgroup at smc.vnet.net
- Subject: [mg23867] Re: [mg23857] Newbie question: pairswise function
- From: "Harvey P. Dale" <hpd1 at is2.nyu.edu>
- Date: Thu, 15 Jun 2000 00:51:06 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Sidney: In[1]:= l = {1, 5, 19, 100}; In[2]:= Needs["DiscreteMath`Combinatorica`"] In[3]:= ?KSubsets elements, ordered lexicographically." In[4]:= KSubsets[l, 2] Out[4]= {{1, 5}, {1, 19}, {1, 100}, {5, 19}, {5, 100}, {19, 100}} Best, Harvey