MCPcopy Create free account
hub / github.com/dask/dask / homogeneous_deepmap

Function homogeneous_deepmap

dask/utils.py:291–300  ·  view source on GitHub ↗
(func, seq)

Source from the content-addressed store, hash-verified

289
290@_deprecated()
291def homogeneous_deepmap(func, seq):
292 if not seq:
293 return seq
294 n = 0
295 tmp = seq
296 while isinstance(tmp, list):
297 n += 1
298 tmp = tmp[0]
299
300 return ndeepmap(n, func, seq)
301
302
303def ndeepmap(n, func, seq):

Callers 1

Calls 1

ndeepmapFunction · 0.85

Tested by

no test coverage detected