sknano.core
sknano.core.
cyclic_pairs
Return iterator over all subsequence pairs in iterable, up to last and first element pair.
iterable
Iterator
Examples
>>> list(cyclic_pairs('ABC')) [('A', 'B'), ('B', 'C'), ('C', 'A')]