MCPcopy Create free account
hub / github.com/catboost/catboost / apply

Function apply

library/python/testing/yatest_lib/external.py:43–50  ·  view source on GitHub ↗

Applies func to every possible member of value :param value: could be either a primitive object or a complex one (list, dicts) :param func: func to be applied :return:

(func, value, apply_to_keys=False)

Source from the content-addressed store, hash-verified

41
42
43def apply(func, value, apply_to_keys=False):
44 """
45 Applies func to every possible member of value
46 :param value: could be either a primitive object or a complex one (list, dicts)
47 :param func: func to be applied
48 :return:
49 """
50 return _do_apply(func, value, apply_to_keys, None)
51
52
53def is_coroutine(val):

Callers 3

serializeFunction · 0.70
TStaticRangeClass · 0.50
FormatValueFunction · 0.50

Calls 1

_do_applyFunction · 0.85

Tested by

no test coverage detected