MCPcopy Index your code
hub / github.com/clips/pattern / combinations

Function combinations

pattern/text/search.py:120–122  ·  view source on GitHub ↗
(iterable, n)

Source from the content-addressed store, hash-verified

118 return x
119
120def combinations(iterable, n):
121 # Backwards compatibility.
122 return product(iterable, repeat=n)
123
124def product(*args, **kwargs):
125 """ Yields all permutations with replacement:

Callers

nothing calls this directly

Calls 1

productFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…