Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
775
def
flatlist(lst):
776
if
isinstance(lst, list):
777
return
reduce(
lambda
x, y, f=flatlist: x + f(y), lst, [])
778
return
[lst]
779
780
781
def
stripcomma(s):
Callers
1
replace
Function · 0.85
Calls
1
f
Function · 0.85
Tested by
no test coverage detected