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

Function homogeneous_deepmap

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

ndeepmapFunction · 0.85

Tested by

no test coverage detected