MCPcopy Create free account
hub / github.com/bgrimstad/splinter / flatten_list

Function flatten_list

python/splinter/utilities.py:58–65  ·  view source on GitHub ↗
(l)

Source from the content-addressed store, hash-verified

56# return [item for sublist in l for item in sublist]
57
58def flatten_list(l):
59 result = []
60 for item in l:
61 if isinstance(item, list):
62 result += flatten_list(item)
63 else:
64 result.append(item)
65 return result
66
67
68def get_architecture():

Callers 1

_transform_inputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected