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 58 of file combo.py.
59 """Return all subsequences of length n from items.
60 Differences in ordering are considered significant.
61 For example, all_combinations([1,2,3],2) will yield both [1,2] and [2,1].
63 >>> for c in all_combinations(['l','o','v','e'],2):
64 ... print (''.join(c))
81 for i
in range(len(items)):