MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / name

Function name

functional/transformations.py:27–36  ·  view source on GitHub ↗

Retrieve a pretty name for the function :param function: function to get name from :return: pretty name

(function)

Source from the content-addressed store, hash-verified

25
26
27def name(function):
28 """
29 Retrieve a pretty name for the function
30 :param function: function to get name from
31 :return: pretty name
32 """
33 if isinstance(function, types.FunctionType):
34 return function.__name__
35 else:
36 return str(function)
37
38
39def map_t(func):

Callers 15

test_lineage_nameMethod · 0.90
map_tFunction · 0.85
select_tFunction · 0.85
starmap_tFunction · 0.85
filter_tFunction · 0.85
where_tFunction · 0.85
filter_not_tFunction · 0.85
distinct_by_tFunction · 0.85
order_by_tFunction · 0.85
drop_while_tFunction · 0.85
take_while_tFunction · 0.85
flat_map_tFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_lineage_nameMethod · 0.72