MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Combinations function?


There is already a function to obtain the number of permutations possible
from a set (or list); but does anyone know of a function to obtain the
combinations?

For example, if the set is {a,b,c,d}, I want to list all 3-member
combinations possible, yielding {{a,b,c},{a,b,d},{a,c,d},{b,c,d}}. 


Thanks in advance,
Erik Kulstad




  • Prev by Date: Re: Graphics3D
  • Next by Date: Abs[]
  • Previous by thread: Re: Graphics3D
  • Next by thread: Re: Combinations function?