Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Flatten a List (generator version) by fed.kz
import re
def flat_list(A):
yield from [int(x) for x in re.findall(r"[-\d]+", str(A))]
# Idea taken from user @JimmyCarlos.
Oct. 20, 2018
Comments: