MCPcopy Create free account
hub / github.com/dblalock/bolt / chain

Function chain

experiments/python/pyience.py:431–440  ·  view source on GitHub ↗
(funcs)

Source from the content-addressed store, hash-verified

429
430
431def chain(funcs):
432 if funcs is None or not len(funcs):
433 return lambda x: x
434
435 def f(*args, **kwargs):
436 res = funcs[0](*args, **kwargs)
437 for func in funcs[1:]:
438 res = func(res)
439
440 return f
441
442
443def subdict(d, keys):

Callers 1

apply_funcsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected