Lines Matching refs:permutations
72 :func:`permutations` p[, r] r-length tuples, all po…
76 ``permutations('ABCD', 2)`` ``AB AC AD BA BC BD CA …
155 of :func:`permutations` after filtering entries where the elements are not
161 for indices in permutations(range(n), r):
498 .. function:: permutations(iterable[, r])
500 Return successive *r* length permutations of elements in the *iterable*.
503 of the *iterable* and all possible full-length permutations
516 def permutations(iterable, r=None):
517 # permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC
518 # permutations(range(3)) --> 012 021 102 120 201 210
541 The code for :func:`permutations` can be also expressed as a subsequence of
545 def permutations(iterable, r=None):
829 "Random selection from itertools.permutations(iterable, r)"