MCPcopy Create free account
hub / github.com/numpy/numpy / flatlist

Function flatlist

numpy/f2py/auxfuncs.py:775–778  ·  view source on GitHub ↗
(lst)

Source from the content-addressed store, hash-verified

773
774
775def flatlist(lst):
776 if isinstance(lst, list):
777 return reduce(lambda x, y, f=flatlist: x + f(y), lst, [])
778 return [lst]
779
780
781def stripcomma(s):

Callers 1

replaceFunction · 0.85

Calls 1

fFunction · 0.85

Tested by

no test coverage detected