Skip to content

Commit 86a6482

Browse files
authored
Enhance docstring for pairwise iteration
Added docstring explaining the use of itertools.tee for independent iterators.
1 parent f6ac830 commit 86a6482

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎data_structures/arrays/pairwise_iteration.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def pairwise_iteration_tee(iterable: Iterable) -> Iterator[tuple]:
5858
... ['ATG','GCT','TGC','TAA'],
5959
... [],
6060
... ))
61+
True
6162
"""
6263
# Uses itertools.tee to create two independent iterators (a and b)
6364
# from the iterable. This means we can use next() on each one

0 commit comments

Comments
 (0)