>>> from seqint import seqint >>> for n in seqint(iter([])): ... print(repr(n), end='-') --ini-enunciat Cas mínim (subseqüència buida o sense xifres): >>> for n in seqint(iter([-1])): ... print(repr(n), end='-') 0- Una subseqüència amb les xifres 1 i 3: >>> for n in seqint(iter([ 1, 3, -1 ])): ... print(repr(n), end='-') 13- Tres subseqüències: >>> for n in seqint(iter([ 1, 2, 3, -1, 9, 8, -1, -1])): ... print(repr(n), end='-') 123-98-0- --fi-enunciat >>> for n in seqint(iter([-1, -1, -1, -1, -1])): ... print(repr(n), end='-') 0-0-0-0-0- >>> for n in seqint(iter([0, -1, 1, -1, 2, -1, 3, -1, 4, -1])): ... print(repr(n), end='-') 0-1-2-3-4- >>> for n in seqint(iter([0, -1, ... 1, -1, ... 2, 2, -1, ... 3, 3, 3, -1, ... 4, 4, 4, 4, -1, ... 5, 5, 5, 5, 5, -1])): ... print(repr(n), end='-') 0-1-22-333-4444-55555- Cinc subseqüències: >>> exemple2 = [ 1, 2, 3, 4, -1, 5, 0, 0, 0, 1, -1, 2, 2, -1, 9, -1, -1] >>> for n in seqint(iter(exemple2)): ... print(repr(n), end='-') ... 1234-50001-22-9-0-