MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / _pairwise

Function _pairwise

tests/utils/test_version.py:23–27  ·  view source on GitHub ↗

s -> (s0,s1), (s1,s2), (s2, s3), ...

(iterable)

Source from the content-addressed store, hash-verified

21
22# from pkg_resources
23def _pairwise(iterable):
24 "s -> (s0,s1), (s1,s2), (s2, s3), ..."
25 a, b = itertools.tee(iterable)
26 next(b, None)
27 return zip(a, b)
28
29
30# from pkg_resources

Callers 1

test_version.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…