Return all subsequences of length n from items.
Differences in ordering are considered significant.
For example, all_combinations([1,2,3],2) will yield both [1,2] and [2,1].
>>> for c in all_combinations(['l','o','v','e'],2):
... print (''.join(c))
lo
lv
le
ol
ov
oe
vl
vo
ve
el
eo
ev
Definition at line 57 of file combo.py.
58 """Return all subsequences of length n from items.
59 Differences in ordering are considered significant.
60 For example, all_combinations([1,2,3],2) will yield both [1,2] and [2,1].
62 >>> for c in all_combinations(['l','o','v','e'],2):
63 ... print (''.join(c))
80 for i
in range(len(items)):