MCPcopy Index your code
hub / github.com/clips/pattern / unzip

Function unzip

pattern/text/tree.py:70–73  ·  view source on GitHub ↗

Returns the item at the given index from inside each tuple in the list.

(i, iterable)

Source from the content-addressed store, hash-verified

68 return _zip(*[i + [default.get("default", None)] * (n-len(i)) for i in args])
69
70def unzip(i, iterable):
71 """ Returns the item at the given index from inside each tuple in the list.
72 """
73 return [x[i] for x in iterable]
74
75def intersects(iterable1, iterable2):
76 """ Returns True if the given lists have at least one item in common.

Callers 3

relatedMethod · 0.85
sliceMethod · 0.85
parse_xmlFunction · 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…