This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Title: JSON | |
JSON Utilities for AutoHotkey | |
Details: | |
Internally the ActiveX Control "Windows Script Control " (http://www.microsoft.com/de-de/download/details.aspx?id=1949) is used by those functions | |
Author: | |
Compilation by hoppfrosch; Original work by Wicked and tmplinshi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def combinations(n, list, combos=[]): | |
# initialize combos during the first pass through | |
if combos is None: | |
combos = [] | |
if len(list) == n: | |
# when list has been dwindeled down to size n | |
# check to see if the combo has already been found | |
# if not, add it to our list | |
if combos.count(list) == 0: |