nigsp.utils.pairwise¶
- nigsp.utils.pairwise(iterable)[source]¶
Recreate itertools.pairwise behaviour for python < 3.10 compatibility.
- Parameters:
- Returns:
tuple
The couple of adjacent elements.
Notes
The original function is: https://docs.python.org/3/library/itertools.html#itertools.pairwise Credit to the Python Software Foundation, this function is under BSD licence. To be replaced by itertools’ pairwise import once support for python < 3.10 is dropped.