• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Permutation Handler
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Permutation Handler


  • Subject: Permutation Handler
  • From: Jed Verity <email@hidden>
  • Date: Wed, 14 Feb 2001 00:09:45 -0800

Does anyone have a handler for creating a list of all possible permutations
of a list? For example:

given a list: {1,2,3,4}

the handler would return a list of all 24 possibilities:

{{1,2,3,4},{1,2,4,3},{1,3,2,4},{1,3,4,2},{1,4,2,3},{1,4,3,2},{2,1,3,4},{2,1,
4,3},{2,3,1,4},{2,3,4,1},...}

Thanks a bunch!
Jed

~)~)~)~)~)~)~)~)~)~)~)~)~)
Jed Verity


  • Prev by Date: Re: [OT] Mac OS 9.1 stability
  • Next by Date: Re: Applescript and FileMaker
  • Previous by thread: Re: Hiding the Apple System Profiler while it executes
  • Next by thread: Re: Permutation Handler
  • Index(es):
    • Date
    • Thread