Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Recursive sum solution in Clear category for Flatten a List by infestum
def flat_list(array):
return sum((flat_list(el) if isinstance(el, list) else [el] for el in array), [])
Sept. 28, 2021
Comments: