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

Function zip_with

monai/utils/misc.py:110–114  ·  view source on GitHub ↗

Map `op`, using `mapfunc`, to each tuple derived from zipping the iterables in `vals`.

(op, *vals, mapfunc=map)

Source from the content-addressed store, hash-verified

108
109
110def zip_with(op, *vals, mapfunc=map):
111 """
112 Map `op`, using `mapfunc`, to each tuple derived from zipping the iterables in `vals`.
113 """
114 return mapfunc(op, zip(*vals))
115
116
117def star_zip_with(op, *vals):

Callers 1

star_zip_withFunction · 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…