MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / flatten

Function flatten

code2flow/model.py:55–61  ·  view source on GitHub ↗

Return a list from a list of lists :param list[list[Value]] list_of_lists: :rtype: list[Value]

(list_of_lists)

Source from the content-addressed store, hash-verified

53
54
55def flatten(list_of_lists):
56 """
57 Return a list from a list of lists
58 :param list[list[Value]] list_of_lists:
59 :rtype: list[Value]
60 """
61 return [el for sublist in list_of_lists for el in sublist]
62
63
64def _resolve_str_variable(variable, file_groups):

Callers 4

make_nodesMethod · 0.85
make_nodesMethod · 0.85
make_nodesMethod · 0.85
map_itFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected