Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Global Variable In Recursion

Status
Not open for further replies.

jonbenn

Programmer
Jan 4, 2005
1
GB
I currently have a recursive function that outputs permutations of a list. It outputs every permutation, but i want it to only output specific ones after all permutations are found.

Does anyone know how I could create a sort of global variable list that i can keep adding to when the recursion meets one permutation goal.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top